Next Article in Journal
Digital Twins at the Edge: A High-Availability Framework for Resilient Data Processing in IoT Sensor Networks
Previous Article in Journal
MAPE-ZT: A Multi-Layer Access Policy Encryption System for Zero Trust Architectures
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multi-Modal Artificial Intelligence for Smart Cities: Experimental Integration of Textual and Sensor Data

Department of Computer Science and Engineering, College of Computer Science and Engineering, University of Hafr Al Batin, Hafr Al Batin 39524, Saudi Arabia
Future Internet 2026, 18(3), 136; https://doi.org/10.3390/fi18030136
Submission received: 29 January 2026 / Revised: 26 February 2026 / Accepted: 27 February 2026 / Published: 5 March 2026

Abstract

Smart city decision-making increasingly relies on heterogeneous urban data sources. Dense traffic sensor streams provide continuous quantitative measurements, while citizen-generated textual reports offer event-driven contextual information. However, integrating these modalities remains challenging due to temporal misalignment, textual sparsity, and semantic noise. This paper investigates multi-modal learning for traffic congestion severity prediction through an experimental integration of open traffic sensor data (METR-LA: Los Angeles, USA) and citizen-generated textual reports (NYC 311: New York City, USA). Congestion severity is formulated as a four-class classification task derived from traffic speed measurements. We propose an end-to-end framework that combines: (i) sensor time-series encoding using a GRU-based temporal encoder, (ii) textual representation learning using a BERT-based encoder, (iii) a symmetric time-window alignment strategy (±Δ) to associate irregular reports with sensor time steps, and (iv) multiple fusion architectures, including early fusion, late fusion, and a cross-attention module for cross-modal interaction modeling. Experiments on publicly available datasets show that multi-modal early fusion achieves the best overall performance (Accuracy = 0.8283, Macro-F1 = 0.8231) compared to uni-modal baselines. In the studied cross-city setting with sparse and weakly aligned textual signals, the proposed cross-attention fusion does not outperform the strong sensor-only baseline, suggesting that the sensor modality dominates when cross-modal signal strength is limited. These results highlight both the potential and the practical constraints of multi-modal fusion in heterogeneous smart-city environments, emphasizing the importance of alignment design, modality relevance, and transparent experimental validation.

Graphical Abstract

1. Introduction

Smart cities increasingly depend on data-driven technologies to enhance urban efficiency, sustainability, and quality of life. The rapid deployment of Internet of Things (IoT) infrastructures and city-scale sensing platforms has enabled continuous monitoring of critical domains such as traffic, energy, public safety, and environmental conditions [1,2,3,4]. These sensing systems generate high-frequency numerical streams (e.g., traffic speed, flow, and occupancy) that provide objective measurements of urban dynamics.
In parallel, cities also generate abundant unstructured textual information through citizen-facing platforms and digital communication channels. Examples include 311 service requests, incident reports, social media posts, and administrative logs. Such text-based records frequently contain rich contextual cues, human observations, and descriptions of causes (e.g., accidents, road closures, events) that may not be immediately captured through sensors alone [2,5,6]. Therefore, integrating sensor data with textual reports is increasingly viewed as a key direction for robust urban intelligence, enabling models to combine the precision of physical measurements with the interpretability and context of human-generated narratives [7,8].
Urban traffic congestion remains one of the most persistent problems affecting smart city mobility, economic productivity, and overall livability. Timely prediction of congestion severity can support adaptive traffic control, route optimization, incident management, and planning of public mobility services [9,10,11]. Many existing traffic analytics approaches rely primarily on sensor-based time-series forecasting, which provides reliable quantitative indicators but often fails to incorporate contextual triggers that explain sudden changes in congestion patterns [7,12]. Conversely, textual reports can provide early warnings and explanations for traffic disruptions but are noisy and sparsely available, and their timestamps may not align with sensor sampling intervals [7,8].
Accordingly, this paper investigates traffic congestion severity prediction as a concrete case study to evaluate multi-modal integration in smart city environments. Formally, given (i) a window of traffic sensor observations over a past horizon and (ii) temporally associated textual reports within a configurable alignment window, our objective is to predict the next-step congestion severity label y (t + 1). Congestion severity is modeled as a four-class ordinal classification problem (Low, Moderate, High, Severe), derived from traffic speed using quantile-based discretization computed on the training split (Section 3.3).
This study aims to:
  • Design a practical multi-modal pipeline that integrates traffic sensor streams with textual urban reports for congestion severity prediction.
  • Develop a temporal alignment strategy that links irregular, sparse textual signals to regularly sampled sensor time steps.
  • Evaluate fusion architectures (early fusion, late fusion, and cross-attention fusion) for modeling cross-modal interactions.
  • Provide reproducible experimental comparisons and ablation analysis, and discuss robustness considerations under sparse/noisy text conditions.
  • Study Challenges:
The experimental integration of textual and sensor data in smart city traffic analytics introduces several technical challenges:
  • Temporal misalignment: Sensor measurements are typically sampled at fixed intervals, while textual reports occur irregularly. Reports may arrive before or after congestion becomes observable in sensor streams, making alignment non-trivial [7,9].
  • Text sparsity and noise: Textual reports may be missing for many time steps, may contain informal language, and may include irrelevant or ambiguous information. This can reduce the reliability of text-only prediction models [7,13].
  • Heterogeneous feature spaces: Sensor time-series are numerical and structured, whereas text is unstructured and semantic. Combining these representations requires effective embedding and fusion mechanisms that preserve complementary information [7,8].
  • Real-time constraints: Smart city systems often require timely predictions. Multi-modal models must be computationally feasible for practical deployment and robust to incomplete or delayed inputs [3,14,15].
  • Cross-city pairing and weak cross-modal relevance: When sensor streams and textual reports originate from different cities, the aligned text may be temporally overlapping but weakly related to the underlying traffic dynamics observed by the sensors. This limits interpretability, increases noise in multimodal fusion, and may reduce the expected benefits of interaction-based fusion mechanisms.
Therefore, this study emphasizes robustness-oriented multimodal integration, focusing on alignment and fusion behavior under sparse and weak auxiliary textual signals.
Table 1 summarizes the studies relevant to the topic of the study and highlights the research gap that the study addresses.

2. Related Work

The rapid evolution of smart city infrastructures has led to the availability of heterogeneous urban data sources, including large-scale sensor streams and unstructured textual records. Consequently, modern urban intelligence increasingly relies on learning frameworks capable of integrating multiple modalities to support predictive and decision-making tasks. In this section, we review (i) sensor-based traffic prediction and congestion modeling, and (ii) multimodal learning and fusion methods in smart city and urban computing. We then position the research gap addressed by this work, emphasizing the need for robust temporal alignment and advanced cross-modal fusion for congestion severity prediction.

2.1. Sensor-Based Traffic Prediction and Congestion Modeling

Traffic prediction and congestion modeling have been widely studied within smart city mobility research, driven by the demand for improved traffic management, routing optimization, and intelligent transportation systems. Traditional data-driven approaches rely primarily on structured sensor measurements such as speed, flow, and occupancy, which provide reliable indicators of traffic conditions at high temporal resolution [3,4]. With the growth of IoT-based sensing infrastructures, traffic analytics has increasingly benefited from machine learning methods that model temporal dependencies and non-linear traffic dynamics [2,3,21].
Deep learning models have become central in traffic forecasting due to their ability to capture complex temporal patterns. Recurrent architectures such as LSTM and GRU are widely used for sequential modeling, enabling prediction of traffic states based on historical sensor measurements [11]. More recently, attention-based architectures and Transformer-like models have been adopted to better model long-range dependencies and dynamic temporal correlations in traffic time-series data [8,22]. These approaches generally improve predictive performance and stability compared to traditional linear models, especially when traffic patterns exhibit non-stationary behavior.
Beyond continuous-value forecasting, several smart city applications require categorical modeling of traffic conditions (e.g., congestion severity levels), which is often formulated as a classification problem. Severity-based models are practical for decision support, because discrete levels can trigger policy actions such as signal timing adjustments, incident alerts, or rerouting strategies [9,10]. However, a major limitation of purely sensor-based congestion modeling is that sensor streams may not fully capture contextual causes of sudden congestion, such as accidents, roadworks, or special events. This limitation motivates the integration of additional modalities—particularly textual urban reports—into congestion prediction pipelines [7].
Related research also extends traffic modeling toward anomaly detection and event-driven analytics, where the goal is to detect disruptions or abnormal traffic behaviors. Multi-agent and AI-driven strategies have been explored to enhance predictive capabilities and decision support under dynamic urban scenarios [11,23]. Nevertheless, most sensor-based approaches remain limited in capturing semantic context, which is often essential for interpreting and anticipating congestion-causing events.

2.2. Multi-Modal Learning and Fusion in Smart Cities

Multi-modal learning aims to integrate heterogeneous data representations to improve prediction accuracy, interpretability, and robustness. In smart city contexts, multi-modal fusion has been increasingly recognized as a crucial capability for integrating sensory measurements with other information sources such as text, images, audio, and remote sensing data [7,8,24]. Recent surveys highlight that smart city analytics is inherently multimodal, and that fusion methods play a central role in enabling data-centric governance and scalable urban intelligence [5,7,14,25].
A broad body of research has proposed fusion taxonomies, distinguishing between early fusion (feature-level concatenation), late fusion (decision-level aggregation), and intermediate fusion methods that integrate modalities within neural architectures [7,8,9]. While early fusion is computationally simple, it often fails to capture cross-modal dependencies beyond linear combination. Late fusion improves modularity and robustness but may not fully exploit complementary information between modalities. Intermediate fusion—especially attention-based mechanisms—has gained significant interest because it enables explicit modeling of interactions between modalities [8,9,26].
Multi-modal fusion in urban analytics has attracted growing attention due to the increasing availability of heterogeneous urban data. Systematic reviews highlight the importance of information fusion methods for smart cities and provide taxonomies of fusion strategies across modalities and domains [7,14,27]. Some studies explore multimodal frameworks and attention-based mechanisms for smart city data processing [18,22,28], while others investigate multimodal learning for specific event detection tasks in traffic contexts [12]. Moreover, recent surveys on deep multimodal fusion emphasize that advanced fusion mechanisms—such as attention-based cross-modal interaction—are generally more effective than simple feature concatenation in capturing complementary information [8,29,30].
In smart city applications, multi-modal approaches have been explored across multiple domains. Urban computing studies propose general frameworks for processing multi-modal city data using deep learning and attention-based representations [18,22,31]. In traffic-related contexts, multi-modal models have been applied to event detection, demonstrating that integrating sensor observations with additional modalities can improve detection of traffic incidents and unusual patterns [12]. Furthermore, systematic reviews on information fusion emphasize that temporal misalignment and modality imbalance (e.g., dense sensors vs. sparse text) are among the key challenges in urban multi-modal systems [7,32,33,34].
Recent work also indicates growing interest in generative AI and large language models (LLMs) for smart city management and cognitive digital twins, where multi-modal data can support decision-making and knowledge representation [35,36,37,38,39]. While these directions highlight the importance of advanced semantic understanding for smart city intelligence, the integration of textual and numerical sensor streams for time-dependent prediction tasks still requires carefully designed fusion strategies and robust experimental validation [40,41].
Overall, the literature shows strong motivation for multi-modal fusion in smart cities; however, effective integration of time-series sensors with irregular textual streams remains technically challenging due to differences in structure, frequency, and reliability. This motivates approaches that include explicit temporal alignment and cross-modal interaction modeling.

2.3. Research Gap

Despite these advances, there remains a limited number of experimentally validated frameworks that (i) explicitly handle temporal alignment between irregular textual signals and regularly sampled traffic sensors, and (ii) evaluate advanced fusion architectures (e.g., cross-attention) for congestion severity prediction with thorough ablation experiments and robustness discussion. This motivates the present work, which focuses on an end-to-end multi-modal pipeline with explicit temporal alignment and cross-modal fusion for smart city traffic intelligence.
To provide a conceptual overview of existing methodological directions and to clearly delineate the contribution of this study, Figure 1 synthesizes prior multimodal fusion strategies in smart city traffic analytics into a unified taxonomy.

3. Materials and Methods

3.1. Study Overview and Pipeline

This study proposes an experimental multi-modal learning framework that integrates traffic sensor streams with textual urban reports to predict traffic congestion severity in smart city settings. The framework is designed to handle two heterogeneous sources: (i) regularly sampled numerical time-series data captured by traffic sensors, and (ii) irregular, event-driven textual reports that may provide early semantic signals about disruptions, incidents, or contextual triggers.
-
Inputs and Output:
Let t denote a discrete time index aligned with the sensor sampling interval. The proposed system takes the following inputs:
  • Traffic sensor window: A historical sensor window of length L ending at time t:
    X s ( t ) = { x s ( t L + 1 ) , , x s ( t ) }
    where x s ( · ) denotes the traffic speed measurement vector across all sensor stations at each time step.
  • Aligned textual context: A set of textual reports temporally associated with time t using an alignment window Δ:
    T ( t ) = { r i |   | t i m e ( r i ) t i m e ( t ) | Δ }
    where r i denotes an individual text report.
The prediction target is a discrete congestion severity label at the next time step:
At each time step t, the multimodal input to the model can be formally represented as a paired structure ( X s ( t ) , H t ) , where X s ( t ) R L   × N denotes the sensor window of length L across N sensors, and H t = [ h t , i , , h t , n t ] is the set of aligned report embeddings within the temporal window, with h t , i R d t . This formulation highlights the structured nature of the multimodal input and clarifies the dependency of the fusion mechanism on the availability of aligned reports.
where h t , i   denotes the embedding of the i-th textual report aligned to time step t, and nt is the number of aligned reports within the window Δ. Thus, H t is a list (set) of report embeddings, not paired elements.
where N is the number of sensors and d t is the text embedding dimension.
y ( t + 1 ) { 1 , 2 , 3 , 4 }
corresponding to Low, Moderate, High, and Severe congestion levels, derived from the traffic speed at time t + 1. Predicting y ( t + 1 ) from history up to t avoids using the same measurement to define the label.
-
Processing Pipeline:
The overall processing pipeline consists of the following stages:
  • Data acquisition from open datasets (traffic sensors + textual reports).
  • Preprocessing of sensor time series (cleaning, normalization, windowing) and text (cleaning, tokenization).
  • Temporal alignment to associate irregular textual reports with regularly sampled sensor time steps using a configurable window Δ.
  • Modality-specific encoding, where sensor sequences and aligned text are converted into compact embeddings using dedicated encoders.
  • Multi-modal fusion using early fusion, late fusion, or cross-attention-based fusion to model interactions between the sensor and textual embeddings.
  • Classification, where a prediction head outputs the congestion severity level.
  • Evaluation, including comparisons with baseline models and ablation analysis and robustness discussion.
To provide a clear and structured visualization of the above-described stages, Figure 2 illustrates the overall multi-modal framework for traffic congestion severity prediction.
The framework aligns irregular text reports to sensor time steps and fuses modality embeddings via cross-attention.

3.2. Open Datasets

To ensure reproducibility and practical relevance, the proposed framework is evaluated using publicly available open datasets representing traffic sensor streams and textual urban reports. This selection reflects a typical smart city setting where dense sensing infrastructure is complemented by human-generated textual signals.

3.2.1. Traffic Sensor Dataset (METR-LA)

The traffic sensing modality is represented using the METR-LA dataset, which has been widely adopted in urban traffic modeling research. It contains traffic speed measurements collected from a network of roadway sensors in the Los Angeles metropolitan area. The measurements are aggregated at a fixed sampling interval (5 min), enabling the construction of regular time-series sequences suitable for deep learning-based temporal modeling.
  • Key characteristics of METR-LA include:
  • Spatial scale: multiple sensors distributed across the city road network.
  • Temporal scale: continuous time-series spanning multiple months.
  • Measurement type: traffic speed (primary variable), which can be used to derive congestion levels.
Although METR-LA provides a structured and dense sensor stream, it does not directly encode semantic context about external triggers (e.g., accidents, events). This motivates the integration with textual urban reports as an additional modality [7].

3.2.2. Textual Dataset (NYC 311)

The textual modality is represented using the NYC 311 service requests dataset, which contains large-scale public service reports submitted by citizens. These reports include unstructured text descriptions, timestamps, and location-related attributes. Such text streams provide qualitative, human-centered descriptions of urban issues (e.g., road conditions, disruptions), and can serve as a proxy for real-world city reporting channels relevant to smart city monitoring.
  • Key characteristics of NYC 311 include:
  • Text content: short-to-medium descriptions of incidents and service issues.
  • Temporal coverage: long-term, continuously updated records.
  • Spatial attributes: borough/zip code/geo-location fields.
Textual data are inherently irregular and noisy. Reports may be sparse relative to sensor sampling, requiring explicit alignment and robust encoding strategies [7,13].

3.2.3. Data Integration Rationale

In real smart city deployments, traffic monitoring often combines dense sensor streams with irregular human-generated reports from the same city. In this work, we construct an experimental multimodal benchmark by integrating two widely used open datasets that originate from different cities (METR-LA, NYC 311). Because the two streams do not describe the same roadway network or incident events, temporal overlap does not guarantee semantic correspondence. Consequently, the aligned text modality should be interpreted as a weak and potentially irrelevant auxiliary stream. We therefore position this study as an experimental robustness investigation of temporal alignment and fusion strategies under sparse/noisy and weakly related text signals, rather than as a fully unified real-city multimodal deployment. All timestamps are normalized to a common reference (UTC) before applying the alignment window.
Table 2 summarizes the open datasets used in this study. METR-LA provides dense traffic speed measurements sampled every 5 min from 207 sensors, spanning 34,272-time steps between 1 March 2012 and 27 June 2012. NYC 311 provides irregular citizen-generated textual reports; after restricting to the same temporal window, 570,998 reports are available. For computational efficiency, we use a fixed subset of 120,000 reports after preprocessing (removing empty or extremely short texts) and randomly sampled from the full set of reports within the study period using a fixed random seed for reproducibility. We note that any subsampling may alter report density patterns and is therefore reported explicitly as an experimental constraint.
A descriptive inspection of the METR-LA speed data reveals clear temporal variability consistent with daily traffic patterns, where speed values tend to decrease during peak commuting periods and increase during off-peak hours. Similarly, the NYC 311 reports exhibit irregular temporal density, with bursts of activity during certain periods and long intervals with sparse reporting. These characteristics motivate the need for robust temporal alignment and fusion mechanisms that can handle uneven cross-modal availability.

3.3. Label Construction (Congestion Severity)

In this study, traffic congestion severity is formulated as a four-class classification task derived from continuous traffic speed measurements. Speed is a widely used proxy for congestion, where lower speeds typically indicate heavier congestion levels. To construct discrete labels in a reproducible manner, we transform the speed values into four ordinal severity classes: Low, Moderate, High, and Severe.

3.3.1. Severity Levels

Let v(t) denote the citywide average traffic speed (i.e., averaged across the 207 METR-LA sensors) at time t. We define the congestion severity label y(t) as a four-class ordinal variable derived from v(t). In our experiments, the model uses sensor history up to time t to predict the next-step severity label y(t + 1). This formulation defines a citywide congestion severity index rather than per-sensor labels, which simplifies evaluation and supports robustness analysis.
y ( t ) { L o w , M o d e r a t e , H i g h , S e v e r e }

3.3.2. Thresholding Strategy

To avoid arbitrary manual thresholds and to ensure adaptability across different sensors, we adopt a quantile-based thresholding strategy. Specifically, the thresholds are computed using the empirical distribution of speed values in the training set only, ensuring that label construction does not leak information from validation or test splits.
Let Q0.25, Q0.50, and Q0.75 denote the 25th, 50th, and 75th percentiles of the training speed distribution, respectively. The congestion severity label is then defined as:
y ( t ) = { S e v e r e   ,   v ( t )   Q 0 . 25 H i g h   ,   Q 0 . 25 <   v ( t )   Q 0 . 50 M o d e r a t e   ,   Q 0 . 50 <   v ( t )   Q 0 . 75 L o w   ,         v ( t ) >   Q 0 . 75
Quantile-based thresholds provide a data-driven and reproducible labeling strategy that avoids subjective or city-specific speed cutoffs. This approach also yields relatively balanced class distributions, which is important for stable training and fair comparison across models. While traffic speed varies naturally by time-of-day, the empirical speed distribution implicitly reflects these temporal variations, allowing the quantile-based discretization to capture congestion severity relative to typical operating conditions in the dataset.
This approach provides a balanced partitioning of the speed data into four classes and supports robust evaluation under varying traffic conditions. Similar discretization strategies have been used in smart city and traffic analytics when categorical decision outputs are required for operational response and monitoring [7].
The four congestion severity classes and their quantile-based speed thresholds (computed on the training split) are defined in Table 3.
Figure 3 shows the distribution of traffic speeds and the derived intensity thresholds.
Speed distribution in the training set with quantile thresholds used to define four congestion severity classes.

3.4. Preprocessing

This section describes preprocessing procedures for both sensor time-series data and textual reports. Given the heterogeneous nature of the two modalities, preprocessing is performed independently to ensure that each input is represented in a consistent and model-ready format before alignment and fusion.

3.4.1. Sensor Preprocessing

Traffic sensor data in METR-LA are organized as regularly sampled time-series streams. The following preprocessing steps are applied:
  • Data cleaning: Sensor readings are checked for missing entries or invalid values (e.g., negative speeds). Invalid values are treated as missing.
  • Imputation: Missing values are handled using linear interpolation across time for each sensor station. This method preserves temporal continuity and is commonly adopted in traffic time-series modeling.
Handling gaps and sensor outages: METR-LA contains occasional missing values. In this experimental setup, we apply linear interpolation within each sensor stream to impute missing readings and keep all 207 sensors. We do not apply additional sensor exclusion rules; therefore, if a sensor exhibits long missing segments, its interpolated values may be less reliable. This is a standard practical trade-off and is reported explicitly for reproducibility.
Linear interpolation is commonly adopted in traffic time-series modeling when missing intervals are relatively short, as it preserves temporal continuity without introducing abrupt artifacts. Given the moderate frequency of missing values in METR-LA and the objective of maintaining all 207 sensors for robustness analysis, interpolation provides a practical trade-off between data completeness and modeling simplicity.
3.
Normalization: Each sensor’s speed values are normalized using z-score normalization computed from the training split:
v ( t ) = v ( t ) μ σ
where μ and σ are the mean and standard deviation of the training data for the corresponding sensor.
4.
Sliding window construction: For each target time step t, we construct a historical window of length L time steps:
X s ( t ) = { x s ( t L + 1 ) , , x s ( t ) }
In this study, we set L = 12, corresponding to one hour of sensor history at a 5 min sampling interval. This window length provides sufficient short-term temporal context while maintaining computational efficiency.
These steps produce standardized sensor sequences suitable for temporal encoding with recurrent or attention-based models [3,11].

3.4.2. Text Preprocessing

Textual urban reports are naturally noisy and contain informal language, abbreviations, and inconsistent formatting. We apply the following preprocessing steps:
  • Cleaning rules:
-
Convert text to lowercase.
-
Remove URLs, email addresses, and excessive whitespace.
-
Remove non-informative characters (e.g., repeated punctuation).
-
Keep alphanumeric tokens and common separators.
Text field selection: Each NYC 311 record contains multiple structured text fields (e.g., Complaint Type and Descriptor). In this study, we construct a single input string per report by concatenating the Complaint Type and Descriptor fields (separated by a delimiter). We do not use location identifiers as text input. Beyond restricting the time span and removing empty/very short texts, we do not apply aggressive topic filtering; therefore, the text stream may include non-traffic-related reports. We treat this as an experimental constraint and discuss it as a key limitation and direction for future work.
2.
Tokenization: Text reports are tokenized using the tokenizer of the pretrained language model bert-base-uncased (BERT-base).
3.
Maximum sequence length: Each report is truncated or padded to a maximum length of 128 tokens, which balances coverage and computational cost.
4.
Embedding extraction (BERT): The textual representation is obtained using a pretrained BERT encoder. Given a tokenized report r i , we extract its embedding h t , i   as:
h t , i = f t ( r i )
where f t ( · ) denotes the BERT encoder (bert-base-uncased). We use the pooled [CLS] representation as a sentence-level embedding. In our experiments, BERT is used as a frozen feature extractor (no fine-tuning) to reduce computational cost.
Using a frozen BERT encoder ensures stable and reproducible text representations while significantly reducing training complexity and computational overhead. Given the experimental focus on alignment and fusion mechanisms rather than large-scale language model fine-tuning, this choice provides a controlled and computationally efficient setup.
For time steps with multiple aligned reports, embeddings can be aggregated by mean pooling to form a single fixed-length textual context vector (used in the text-only and early/late fusion baselines). For the cross-attention fusion model, we retain the set of per-report embeddings within the alignment window and apply attention over the report set (Section 3.6).
    h t ¯ = 1 |   T ( t ) |   r i     T ( t ) f t ( r i )
The preprocessing steps applied to sensor time-series and textual reports are summarized in Table 4, highlighting the key configuration choices used throughout the experiments.

3.5. Temporal Alignment Strategy

A central challenge in integrating sensor streams with textual reports is the mismatch in temporal structure: traffic sensors provide regularly sampled time-series, whereas textual reports arrive irregularly and may not exist at every prediction time step. Therefore, a temporal alignment mechanism is required to associate text records with sensor time steps in a consistent and reproducible manner [7].
In this work, alignment is performed using a configurable time-window association strategy. For each sensor time step t, we collect all textual reports whose timestamps fall within a symmetric window around t. This design is simple, practical, and suitable for real smart city systems where reports may occur slightly before or after a measurable effect appears in sensors.

3.5.1. Alignment Window Definition

Let time (t) denote the real timestamp corresponding to sensor time index t. Let each textual report r i have an associated timestamp t i m e ( r i ) . Given an alignment window Δ, we define the set of aligned reports for time step t as:
T ( t ) = { r i |   | t i m e ( r i ) t i m e ( t ) | Δ }
In this study, we set Δ = 30 min as the default alignment window. This choice reflects a practical delay tolerance in city reporting platforms and provides a balanced trade-off between capturing relevant contextual reports and introducing unrelated text. Because the paired datasets originate from different cities, the aligned text may be weakly related to the sensor conditions; therefore, Δ should be interpreted as an experimental hyperparameter rather than a calibrated real-world reporting delay.

3.5.2. Construction of a Fixed-Length Text Context per Time Step

Because the number of aligned reports varies over time, we represent the aligned text either as (i) a mean-pooled fixed-length vector h t ¯ for baselines, or (ii) a set of per-report embeddings H t for the cross-attention model. We apply the following strategy:
  • For each report r i T ( t ) , compute its embedding h t , i = f t ( r i ) using the BERT encoder (Section 3.4.2).
  • Aggregate the embeddings into a single vector using mean pooling:
      h t ¯ = 1 |   T ( t ) |   r i     T ( t ) h t , i  
This produces a stable and noise-tolerant representation of the textual context around time step t. Mean pooling is computationally efficient and empirically robust for aggregating multiple short reports [8].

3.5.3. Handling Missing Text Reports (No-Text Cases)

Text reports may be absent for many sensor time steps, especially when the reporting stream is sparse. To ensure that the model can operate under such conditions, we define a no-text handling mechanism:
If T ( t ) = , then:
h t ¯ = h n o n e
where h n o n e is a learned embedding vector representing “no textual information available”. This approach is preferred over using an all-zero vector because it allows the model to learn a meaningful default representation and reduces bias introduced by systematically missing text [7,8].
Implementation note: if report embeddings are precomputed once per report, the alignment step can be implemented with an efficient two-pointer scan over the sorted timestamps in O (N + M) time.
Figure 4 illustrates an example of time synchronization between sensor readings and text reports.
Temporal alignment of irregular text reports to a sensor time step using a symmetric window of ±Δ minutes. Reports within the window are encoded and aggregated to form a fixed-length context vector h t ¯ ; if no reports exist, a learned no-text embedding is used.

3.6. Proposed Multi-Modal Fusion Model

This section presents the proposed multi-modal model designed to integrate traffic sensor time-series and aligned textual context for congestion severity prediction. The model consists of: (i) a sensor encoder to capture temporal traffic dynamics, (ii) a text encoder to extract semantic representations from urban reports, (iii) a cross-attention fusion module to model cross-modal interactions, and (iv) a prediction head to output congestion severity classes. The overall architecture is illustrated in Figure 5.

3.6.1. Sensor Encoder

Traffic sensors generate dense time-series data sampled at regular intervals. To encode the temporal dynamics, we adopt a recurrent neural network (GRU) as the default sensor encoder due to its efficiency and strong performance in sequential modeling. Given a historical sensor window X s ( t ) (Section 3.1), the sensor encoder produces a compact representation:
h s ( t ) = f s ( X s ( t ) )
where f s ( · ) denotes the GRU-based temporal encoder and h s ( t ) R d s is the sensor embedding at time step t. In practice, h s ( t ) is obtained from the final hidden state of the GRU.
We select GRU for its computational efficiency under real-time constraints; however, the framework supports alternative temporal encoders such as temporal Transformers.

3.6.2. Text Encoder

Text reports associated with each sensor time step are encoded using a pretrained language model. For each aligned repor r i   T ( t ) , we compute a per-report embedding using BERT:
h t , i = f t ( r i ) ,   f o r   r i T ( t )
where f t ( · )   denotes the BERT-based text encoder (bert-base-uncased). Each report embedding h t , i R d t . For baselines that require a single fixed-length text vector per time step, we apply mean pooling to obtain h t ¯ R d t (Section 3.5). For the cross-attention fusion model, we retain the report set H t = [ h t , 1 , , h t , n t ] and attend over the report embeddings (Section 3.6).
We treat the aligned text at time t as a set of n t report embeddings H t , where each element corresponds to one report.

3.6.3. Cross-Attention Fusion Module (Proposed)

Simple concatenation-based fusion may fail to capture interaction patterns between traffic dynamics and textual semantics. To address this limitation, we adopt a cross-attention fusion design in which the sensor embedding acts as a query and attends over the set of aligned report embeddings H t . This enables the model to weight multiple aligned reports differently (when available) and to down-weight noisy or irrelevant reports conditioned on the current traffic state.
We project the sensor and text embeddings into a shared attention space of dimension d and compute single-head dot-product attention over the report set:
Q = W q h s ( t ) ,   K i = W k h t , i ,       V i = W v h t , i   f o r   i , 1 , , n t
where W q R d   × d s , W k R d   × d t , and W v R d × d t are trainable projection matrices, and n t   is the number of reports aligned to time step t (Algorithm 1).
Algorithm 1: Temporal alignment of irregular text reports with sensor time steps. Temporal alignment procedure (time-window association).
-
Input: sensor time steps { t 1 , , t N } with timestamps time(t); text reports { r 1 , , r M } with timestamps time ( r i ) alignment window Δ; text encoder f t ( · ) learned “no-text” embedding h n o n e .
-
Output: for each sensor time step t, a list of aligned report embeddings H t = [ h t , 1 , , h t , n t   ( or   [ h n o n e ] if no reports). A mean-pooled text vector h t ¯ can be computed from Ht when required (e.g., for early fusion baselines).
-
Steps:
Sort text reports by timestamp.
For each sensor time step t (chronological order), collect all reports r i such that | t i m e ( r i ) t i m e ( t ) | Δ .
If no reports exist for t, set H t [ h n o n e ] . Otherwise, compute embeddings for each report in the window: h t , i f t ( r i ) .
(Optional for baselines) Compute h t ¯ m e a n ( H t ) .
  •                                   Return { H t } (and h t ¯ when used).
The attention weights and attended text representation are computed as:
α i ( t ) = s o f t m a x i ( Q T K i d ) , i = 1 , , n t
a ( t ) = Σ i = 1 n t   α i ( t )   V i
where the softmax is computed over  i   =   1 , , n t .
(When no reports exist, we set H t = [ h n o n e ] , hence n t = 1 .)
where a (t) ∈ Rd represents the attended textual signal given the sensor query. This mechanism provides a structured way to aggregate multiple aligned reports; however, its benefit depends on the relevance and quality of the aligned text.
Finally, we construct the fused representation by concatenating the sensor embedding with the attended textual embedding:
h f ( t ) = [ h s ( t ) ; a ( t ) ]
This fusion mechanism conditions textual aggregation on the current sensor state to model cross-modal interactions. Its effectiveness depends on the relevance of the aligned textual reports and the alignment quality, particularly in sparse/noisy settings [8].

3.6.4. Prediction Head and Training Objective

The fused representation h f ( t ) is fed into a multilayer perceptron (MLP) followed by a softmax layer to predict the next-step congestion severity class:
y ( t + 1 ) = s o f t m a x ( W o · ϕ ( h f ( t ) ) + b o )
where ϕ(·) denotes the MLP transformation with a non-linear activation, and W o , b o are trainable parameters.
The model is trained using the standard cross-entropy loss:
L =     c = 1 4 y c ( t ) l o g ( y c ^ ( t ) )
where y(t + 1) is the one-hot encoded ground truth label.

3.7. Baseline Models

To validate the effectiveness of the proposed cross-attention fusion architecture, we compare it against multiple baseline models that represent common uni-modal and multi-modal integration strategies. These baselines are designed to isolate the contributions of (i) each modality individually and (ii) the fusion mechanism. Such comparisons follow established evaluation practices in multimodal learning and urban data fusion research [7,8].

3.7.1. Sensor-Only Baseline

This baseline uses only the traffic sensor time-series input X s ( t ) . The sensor window is encoded using the same GRU encoder employed in the proposed model, followed by an MLP classifier. This provides a strong reference that reflects traditional sensor-based congestion modeling.

3.7.2. Text-Only Baseline

This baseline uses only the aligned textual context T(t). Each report is encoded using BERT, and report embeddings within the alignment window are aggregated by mean pooling to form a fixed-length text vector h t ¯ . An MLP classifier then predicts congestion severity. This baseline evaluates the predictive signal available from text alone.

3.7.3. Early Fusion Baseline (Concatenation)

Early fusion is a common baseline in multimodal learning, where modality embeddings are concatenated and directly passed to a classifier. Specifically, the sensor embedding h s ( t ) and the mean-pooled text embedding h t ¯ are concatenated:
h e a r l y ( t ) = [ h s ( t ) ; h t ¯ ]
And an MLP classifier predicts the severity label. This baseline assesses whether simple fusion is sufficient without explicit cross-modal interaction modeling.

3.7.4. Late Fusion Baseline (Ensemble)

Late fusion combines decisions from independent models trained separately on each modality. We train the sensor-only model and text-only model independently, then fuse their outputs at the decision level by averaging class probabilities:
ŷ l a t e ( t + 1 ) = 1 / 2 ( ŷ s ( t + 1 ) + ŷ t ( t + 1 ) .
For fair comparison, we evaluate the proposed approach against standard uni-modal and multi-modal baselines, which are summarized in Table 5.

4. Experimental Setup

This section describes the experimental protocol used to train and evaluate the proposed model and baseline methods. The setup is designed to ensure reproducibility and fair comparison across models.

4.1. Data Splitting

The traffic sensor time-series is split chronologically to avoid temporal leakage, following standard practice in time-series learning. We partition the data into:
  • Training set: 70%
  • Validation set: 10%
  • Test set: 20%
All preprocessing statistics (normalization parameters and quantile thresholds for label construction) are computed using the training set only (Section 3.3 and Section 3.4). The NYC 311 text records are restricted to the same temporal window as METR-LA and are aligned to sensor time steps using the procedure described in Section 3.5.

4.1.1. Input Configuration

  • Sensor window length: L = 12 (1 h history with 5 min sampling)
  • Alignment window: Δ = 30 min (default)
  • Text maximum length: 128 tokens
  • Number of classes: 4 (Low, Moderate, High, Severe)

4.1.2. Training Details

All models are trained using the Adam optimizer with early stopping based on validation Macro-F1 (patience = 5 epochs; the best checkpoint is selected by validation Macro-F1). Each experiment is repeated three times with different random seeds, and mean results are reported to reduce variance.
We use fixed random seeds for reproducibility and keep all hyperparameters identical across baselines to ensure fair comparison. The default settings (Δ = 30 min, L = 12) were selected based on validation performance and retained across all experiments.
The experimental protocol and model hyperparameters used for training and evaluation are reported in Table 6.
Hyperparameters were selected based on validation performance and kept fixed across all compared models.

4.2. Evaluation Metrics

To evaluate congestion severity prediction performance, we adopt standard classification metrics that capture both overall correctness and class-balanced performance.
  • Accuracy: the fraction of correctly predicted instances:
    Accuracy = correct predictions/total predictions
  • Macro-F1 (primary): the unweighted mean of class-wise F1 scores, which is robust to potential class imbalance:
    { M a c r o - F 1 } = 1 C c = 1 F 1 c
  • Precision and Recall: reported as macro-averaged scores across classes.
Because congestion severity may exhibit imbalance across labels, Macro-F1 is used as the primary metric for model comparison. Additionally, inference efficiency is discussed qualitatively in Section 5 as a practical consideration for smart city deployment [7,8].

5. Results

This section reports the empirical evaluation of the multimodal framework for traffic congestion severity prediction. We compare fusion strategies against unimodal baselines and conduct an ablation analysis to examine the contribution of key components. We also discuss robustness considerations related to the alignment window Δ and sensor history length Lqualitatively (without claiming a full sensitivity sweep in this experimental setting).

5.1. Main Quantitative Results

Table 7 reports the main test performance comparison among all models. Overall, sensor-based models provide strong predictive capability due to the dense temporal structure of traffic observations. Text-only performance is notably lower, reflecting the sparsity and noise of citizen reports and the weak cross-modal correspondence in the cross-city pairing. Multi-modal early fusion improves performance over the sensor-only baseline, while the cross-attention fusion model does not outperform the sensor-only baseline in our experiments.
All baselines are implemented using the same data splits, preprocessing, and evaluation protocol, and the same GRU/BERT encoders where applicable to ensure comparability.
Interpretation. The results indicate that the sensor modality remains the primary source of predictive power, while textual reports alone are insufficient for reliable congestion severity classification. Multi-modal early fusion provides measurable benefits, particularly in Macro-F1. The cross-attention fusion model performs similarly to the sensor-only baseline, suggesting that attention-based interaction modeling may require stronger modality relevance (e.g., same-city spatiotemporal alignment or traffic-specific text filtering) to provide gains [7,8].

5.2. Ablation Study

To assess the impact of each component, we conduct ablation experiments by removing modalities and comparing fusion strategies (Table 8). Removing the sensor modality causes a sharp decrease in performance, confirming that traffic sensors capture the dominant congestion dynamics. Removing text reduces performance relative to the best multimodal setting (early fusion/concatenation), indicating that the text stream can provide complementary information when combined at the representation level. In contrast, the cross-attention fusion variant performs similarly to the sensor-only baseline in this experimental setting, suggesting that interaction-based fusion may not provide gains when the aligned text signal is weak or noisy.

6. Discussion

This section discusses the empirical findings of the proposed multi-modal framework for traffic congestion severity prediction. The results confirm that dense traffic sensor time-series remain the dominant source of predictive power, while textual urban reports provide auxiliary contextual signals that can enhance performance when properly aligned and fused. The observed trends provide practical insights into how multimodal learning can support smart city operations under real-world constraints such as irregular reporting, missing text, and heterogeneous data quality.
The main quantitative results indicate that sensor-only prediction achieves strong performance, which is consistent with the continuous and high-frequency nature of traffic measurements. In contrast, text-only performance remains substantially lower, reflecting the sparsity, noise, and indirect relationship between citizen-generated reports and real-time traffic dynamics. Importantly, early fusion improves overall performance, particularly in Macro-F1, suggesting more balanced classification across congestion severity levels. These gains suggest that textual signals can provide a complementary context in which they can function as a complementary “urban context” that helps to explain or predict disturbances that may not be fully captured by sensor streams alone [7,8].
Among the evaluated fusion strategies, early fusion (concatenation) yields the strongest improvement in the reported experiments. This outcome suggests that, under sparse textual conditions, a stable representation-level integration of sensor and text embeddings is sufficient to deliver reliable gains. Although the cross-attention fusion design is conceptually motivated and provides a structured way to aggregate multiple aligned reports (Section 3.6), it does not outperform the sensor-only baseline in this experimental setting. A likely explanation is the weak cross-modal correspondence introduced by the cross-city pairing and the broad topical coverage of 311 reports, which can cause the model to down-weight text or to learn minimal additional signal beyond sensors. This observation aligns with multimodal fusion literature, where the advantage of interaction-based mechanisms typically increases when the auxiliary modality contains higher-quality and more directly relevant information [8].
From a smart city deployment perspective, the findings support multimodal pipelines that treat textual reports as auxiliary signals for decision support rather than as a primary predictor. In practice, traffic management systems often require semantic explanations for observed congestion (e.g., construction, road disruption, or service issues), and same-city textual streams can provide such cues. In this study, however, interpretability claims are necessarily limited by the cross-city pairing. Regarding real-time feasibility, GRU-based sensor encoding supports efficient streaming inference, while the BERT encoder is used in feature-extraction mode and can be precomputed offline per report to reduce online latency. We do not claim measured end-to-end latency in this experimental study; instead, we discuss computational considerations qualitatively based on model structure and dominant costs (BERT encoding).
This research has limitations. First, multimodal integration is performed experimentally using open datasets from different cities, which enables controlled evaluation of alignment and fusion under realistic sparsity and noise conditions but does not provide direct geo-spatial or event-level correspondence between textual reports and sensor locations. Second, the temporal alignment strategy relies on a fixed ±Δ window, which introduces uncertainty because not all reports within the window are necessarily relevant to the sensor time step. Third, NYC 311 reports cover a wide range of urban topics and, beyond basic preprocessing, the current experimental setup does not perform traffic-specific topic filtering; this can dilute cross-modal signal. Finally, for computational reasons we subsample the text stream (120,000 reports), which may alter report density patterns. These factors limit interpretability and help explain why interaction-based fusion does not provide gains over sensor-only performance in the reported experiments [7].
We therefore interpret the multimodal setting as a robustness test under weak auxiliary text rather than evidence of strong cross-modal causality.
Future research can address these limitations by integrating spatial modeling and stronger cross-modal alignment. Incorporating road-network graphs or spatial adjacency structures may better capture how congestion propagates across connected road segments. Additionally, unified multimodal datasets collected within a single city—where sensors and reports are geo-temporally aligned—would enable stronger validation of cross-attention interaction modeling and more realistic incident-level case studies. Finally, recent advances in large language models suggest opportunities for improving semantic understanding and filtering of urban reports; lightweight LLM-assisted categorization or summarization could reduce noise and improve relevance before fusion, potentially increasing the effectiveness of attention-based multimodal learning in real-world smart city deployments [35,36,37].
Future work may extend this framework to highway scenarios with reduced sensor coverage or sparse sensing infrastructure, where textual reports and human-generated signals may play a more influential role. Such settings could better highlight the benefits of multimodal fusion when sensor density is limited.

7. Conclusions

This paper demonstrates that integrating textual urban reports with traffic sensor streams is feasible within an end-to-end multimodal pipeline. The experimental results show that early fusion provides the most consistent performance gains, while cross-attention fusion remains sensitive to the strength and relevance of aligned textual signals. A key strength of the proposed framework is its reproducible design, including explicit temporal alignment and systematic baseline comparisons. However, the study is limited by the cross-city pairing of datasets and the potential inclusion of non-traffic-related reports, which may weaken cross-modal signal quality. From a practical perspective, the findings suggest that multimodal fusion is most beneficial when textual streams are semantically relevant and reliably aligned with sensor measurements, emphasizing the importance of dataset design and modality relevance in real-world smart city deployments.

Funding

This research received no external funding.

Data Availability Statement

The METR-LA traffic dataset and NYC 311 service requests data used in this study are publicly available. All preprocessing steps, alignment rules, hyperparameters, and evaluation metrics are documented in Section 3, Section 4 and Section 5 to support reproducibility.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Allam, Z.; Dhunny, Z. On big data, artificial intelligence and smart cities. Cities 2019, 89, 80–91. [Google Scholar] [CrossRef] [Scilit]
  2. Al-Turjman, F.; Malekloo, A. Sensors on internet of things systems for the sustainable development of smart cities: A systematic literature review. Sensors 2024, 24, 2074. [Google Scholar] [CrossRef] [Scilit]
  3. Ullah, A.; Anwar, S.M.; Li, J.; Nadeem, L.; Mahmood, T.; Rehman, A.; Saba, T. Smart cities: The role of internet of things and machine learning in realizing a data-centric smart environment. Complex Intell. Syst. 2024, 10, 1175. [Google Scholar] [CrossRef] [Scilit]
  4. Van Hoang, T. Impact of Integrated Artificial Intelligence and Internet of Things Technologies on Smart City Transformation. J. Tech. Educ. Sci. 2024, 19, 64–73. [Google Scholar] [CrossRef] [Scilit]
  5. Bibri, S.; Huang, J.; Jagatheesaperumal, S.; Krogstie, J. The synergistic interplay of artificial intelligence and digital twin in environmentally planning sustainable smart cities: A comprehensive systematic review. Environ. Sci. Ecotechnol. 2024, 20, 100433. [Google Scholar] [CrossRef] [Scilit]
  6. Alzubi, T.; Mukhtar, U. MVR: Synergizing Large and Vision Transformer for Multimodal Natural Language-Driven Vehicle Retrieval. IEEE Access 2025, 13, 7014–7026. [Google Scholar] [CrossRef] [Scilit]
  7. Fadhel, M.; Duhaim, A.; Saihood, A.; Sewify, A.; Al-Hamadani, M.; Albahri, A.; Alzubaidi, L.; Gupta, A.; Mirjalili, S.; Gu, Y. Comprehensive systematic review of information fusion methods in smart cities and urban environments. Inf. Fusion 2024, 107, 102317. [Google Scholar] [CrossRef] [Scilit]
  8. Zhu, B.; Wu, M.; Hong, Y.; Chen, Y.; Xie, B.; Liu, F.; Bu, C.; Ding, W. MMIEA: Multi-modal Interaction Entity Alignment model for knowledge graphs. Inf. Fusion 2023, 100, 101935. [Google Scholar] [CrossRef] [Scilit]
  9. Bouramdane, A.-A. Optimal water management strategies: Paving the way for sustainability in smart cities. Smart Cities 2023, 6, 2849–2882. [Google Scholar] [CrossRef] [Scilit]
  10. Dhiman, G.; Alghamdi, N. SMoSE: Artificial Intelligence-Based Smart City Framework Using Multi-Objective and IoT Approach for Consumer Electronics Application. IEEE Trans. Consum. Electron. 2024, 70, 3848–3855. [Google Scholar] [CrossRef] [Scilit]
  11. Shabaz, M.; Raju, K. AI-Driven Traffic Flow Prediction and Anomaly Detection in Smart Cities: A Multi-Agent Approach. Trans. Emerg. Telecommun. Technol. 2025, 36, e70279. [Google Scholar] [CrossRef] [Scilit]
  12. Chadalawada, R. Optimizing public transit networks: An exploration of how multi-modal transportation systems can be integrated in smart cities. World J. Adv. Res. Rev. 2022, 15, 829–841. [Google Scholar] [CrossRef] [Scilit]
  13. Liu, X. AI-driven real-time responsive design of urban open spaces based on multi-modal sensing data fusion. Sci. Rep. 2025, 15, 41255. [Google Scholar] [CrossRef] [Scilit]
  14. Bibri, S.; Huang, J.; Krogstie, J. Artificial Intelligence of Things for Synergizing Smarter Eco-City Brain, Metabolism, and Platform: Pioneering Data-Driven Environmental Governance. Sustain. Cities Soc. 2024, 108, 105516. [Google Scholar] [CrossRef] [Scilit]
  15. Chen, Q.; Wang, W.; Huang, K.; De, S.; Coenen, F. Multi-modal generative adversarial networks for traffic event detection in smart cities. Expert Syst. Appl. 2021, 177, 114939. [Google Scholar] [CrossRef] [Scilit]
  16. Zou, X.; Yan, Y.; Hao, X.; Hu, Y.; Wen, H.; Liu, E.; Zhang, J.; Li, Y.; Li, T.; Zheng, Y.; et al. Deep Learning for Cross-Domain Data Fusion in Urban Computing: Taxonomy, Advances, and Outlook. Inf. Fusion 2024, 113, 102606. [Google Scholar] [CrossRef] [Scilit]
  17. Zhao, F.; Zhang, C.; Geng, B. Deep Multimodal Data Fusion. ACM Comput. Surv. 2024, 56, 216. [Google Scholar] [CrossRef] [Scilit]
  18. Ma, Q.; Nie, Y.; Song, J.; Zhang, T. Multimodal Data Processing Framework for Smart City: A Positional-Attention Based Deep Learning Approach. IEEE Access 2020, 8, 215505–215515. [Google Scholar] [CrossRef] [Scilit]
  19. Gantla, H.; Udit, U.; Pandey, S.; Mantha, S.; Goyal, P.; Jabeen, A.; Fatima, S.; Mamodiya, U. Fusion of Real-Time Traffic and Environmental Sensor Data with Machine Learning for Optimizing Smart City Operations. Fusion Pract. Appl. 2025, 19, 328–340. [Google Scholar] [CrossRef] [Scilit]
  20. Leung, C.; Braun, P.; Cuzzocrea, A. AI-Based Sensor Information Fusion for Supporting Deep Supervised Learning. Sensors 2019, 19, 1345. [Google Scholar] [CrossRef] [Scilit]
  21. Liu, T.; Xu, Z.; Vignon, D.; Yin, Y.; Li, Q.; Qin, Z. Effects of threshold-based incentives on drivers’ labor supply behavior. Transp. Res. Part C Emerg. Technol. 2023, 152, 104140. [Google Scholar] [CrossRef] [Scilit]
  22. Patel, A. Advancements in Multimodal AI: Integrating Text, Image, and Audio Data for Enhanced Machine Learning Models. Kuwait J. Comput. Sci. 2025, 3, 1–15. [Google Scholar] [CrossRef] [Scilit]
  23. Weng, Q.; Li, Z.; Cao, Y.; Lu, X.; Gamba, P.; Zhu, X.; Xu, Y.; Zhang, F.; Qin, R.; Yang, M.Y.; et al. How will AI transform urban observing, sensing, imaging, and mapping? npj Urban Sustain. 2024, 4, 188. [Google Scholar] [CrossRef] [Scilit]
  24. Raj, A.; Lal, B.; Chinthamu, N.; Komuraiah, A.; Kirubakaran, M. An Improved Large Scale Data Analytics for Smart Cities with Multimodal Data Fusion. In Proceedings of the 2023 Second International Conference on Augmented Intelligence and Sustainable Systems (ICAISS), Trichy, India, 23–25 August 2023; pp. 1128–1133. [Google Scholar] [CrossRef] [Scilit]
  25. Boge, M.; Mousa, Y.A.; Bulatov, D.; Qiu, K. Building detection and outlining in multi-modal remote sensor data: A stratified approach. Can. J. Remote Sens. 2024, 50, 2430490. [Google Scholar] [CrossRef] [Scilit]
  26. Shi, B. Construction of Smart City Cloud Platform Based on Multi-Mode Data Fusion Model. J. Phys. Conf. Ser. 2021, 1744, 032028. [Google Scholar] [CrossRef] [Scilit]
  27. Tang, H.; Hu, Y.; Wang, Y.; Zhang, S.; Xu, M.; Zhu, J.; Zheng, Q. Listen as you wish: Fusion of audio and text for cross-modal event detection in smart cities. Inf. Fusion 2024, 110, 102460. [Google Scholar] [CrossRef] [Scilit]
  28. Tang, Q.; Liang, J.; Zhu, F. A comparative review on multi-modal sensors fusion based on deep learning. Signal Process. 2023, 213, 109165. [Google Scholar] [CrossRef] [Scilit]
  29. Cabral, S.; Klimenka, M.; Bademosi, F.; Lau, D.; Pender, S.; Villaggi, L.; Stoddart, J.; Donnelly, J.; Storey, P.; Benjamin, D. A Contactless Multi-Modal Sensing Approach for Material Assessment and Recovery in Building Deconstruction. Sustainability 2025, 17, 585. [Google Scholar] [CrossRef] [Scilit]
  30. Akhtar, S.; Khan, I.; Jumani, A.; Rahib, M.; Talpur, H.; Iqbal, A.; Rafique, A. Advancing Multi-Modal Machine Learning in Smart Environments: Integrating Visual, Auditory, and Sensorial Data for Context-Aware Human–AI Interaction. Annu. Methodol. Arch. Res. Rev. 2025, 3, 26–47. [Google Scholar] [CrossRef] [Scilit]
  31. Matei, A.; Cocoșatu, M. Artificial Internet of Things, Sensor-Based Digital Twin Urban Computing Vision Algorithms, and Blockchain Cloud Networks in Sustainable Smart City Administration. Sustainability 2024, 16, 6749. [Google Scholar] [CrossRef] [Scilit]
  32. Yu, D.; Fang, C. Urban Remote Sensing with Spatial Big Data: A Review and Renewed Perspective of Urban Studies in Recent Decades. Remote Sens. 2023, 15, 1307. [Google Scholar] [CrossRef] [Scilit]
  33. Wang, H.; Zhou, M.; Jia, X.; Wei, H.; Hu, Z.; Li, W.; Chen, Q.; Wang, L. Recent progress on artificial intelligence-enhanced multimodal sensors integrated devices and systems. J. Semicond. 2025, 46, 011610. [Google Scholar] [CrossRef] [Scilit]
  34. Zhang, D.; Wang, Y.; Li, X.; Wu, H. Advancing urban life: A systematic review of emerging technologies and artificial intelligence in urban design and planning. Buildings 2024, 14, 835. [Google Scholar] [CrossRef] [Scilit]
  35. Kalyuzhnaya, A.; Mityagin, S.; Lutsenko, E.; Getmanov, A.; Aksenkin, Y.; Fatkhiev, K.; Fedorin, K.; Nikitin, N.; Chichkova, N.; Vorona, V.; et al. LLM Agents for Smart City Management: Enhancing Decision Support Through Multi-Agent AI Systems. Smart Cities 2025, 8, 19. [Google Scholar] [CrossRef] [Scilit]
  36. Liu, Y.; Li, M.; Ye, Z.; Shi, X.; Wang, W.; Zhao, H. AI-Based Text Detection and Classification for Smart City Monitoring Using BERT and TextCNN Models. In Proceedings of the 2024 International Symposium on Internet of Things and Smart Cities (ISITSC), Nanjing, China, 21–23 June 2024; pp. 41–48. [Google Scholar] [CrossRef] [Scilit]
  37. Shetgaonkar, A.; Pradhan, D.; Arora, L.; Girija, S.; Kapoor, S.; Raj, A. Opportunities and Applications of GenAI in Smart Cities: A User-Centric Survey. In Proceedings of the 2025 IEEE International Conference on Omni-layer Intelligent Systems (COINS), Madison, WI, USA, 4–6 August 2025; pp. 1–7. [Google Scholar] [CrossRef] [Scilit]
  38. Mandal, S.; O’Connor, N. LLMasMMKG: LLM Assisted Synthetic Multi-Modal Knowledge Graph Creation for Smart City Cognitive Digital Twins. Proc. AAAI Symp. Ser. 2024, 4, 210–221. [Google Scholar] [CrossRef] [Scilit]
  39. Wang, T.; Zhang, B.; Jiang, D.; Li, D. A Multimodal Large Language Model Framework for Intelligent Perception and Decision-Making in Smart Manufacturing. Sensors 2025, 25, 3072. [Google Scholar] [CrossRef] [Scilit]
  40. Xu, B. IoT-based multimodal learning framework for predicting student engagement in English education. In Proceedings of the Second International Conference on Intelligent Transportation and Smart Cities (ICITSC 2025), Luoyang, China, 21–22 March 2025; Volume 13682. [Google Scholar] [CrossRef] [Scilit]
  41. Yu, W.; Wu, G.; Han, J. Deep Multimodal-Interactive Document Summarization Network and Its Cross-Modal Text–Image Retrieval Application for Future Smart City Information Management Systems. Smart Cities 2025, 8, 96. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Taxonomy of multimodal fusion strategies in smart city traffic analytics and positioning of the proposed approach. Early fusion (blue) combines feature representations prior to classification; intermediate fusion (green) models cross-modal interactions within the representation space; late fusion (orange) aggregates independent modality-level predictions. The gray section highlights temporal alignment as a key challenge when integrating irregular textual reports with regularly sampled sensor time steps.
Figure 1. Taxonomy of multimodal fusion strategies in smart city traffic analytics and positioning of the proposed approach. Early fusion (blue) combines feature representations prior to classification; intermediate fusion (green) models cross-modal interactions within the representation space; late fusion (orange) aggregates independent modality-level predictions. The gray section highlights temporal alignment as a key challenge when integrating irregular textual reports with regularly sampled sensor time steps.
Futureinternet 18 00136 g001
Figure 2. Overall multi-modal framework for traffic congestion severity prediction.
Figure 2. Overall multi-modal framework for traffic congestion severity prediction.
Futureinternet 18 00136 g002
Figure 3. Distribution of traffic speeds and derived severity thresholds.
Figure 3. Distribution of traffic speeds and derived severity thresholds.
Futureinternet 18 00136 g003
Figure 4. Example of temporal alignment between sensor readings and textual reports.
Figure 4. Example of temporal alignment between sensor readings and textual reports.
Futureinternet 18 00136 g004
Figure 5. Detailed architecture of the proposed cross-attention fusion model. The green branch represents the sensor time-series encoder, the blue branch denotes the text encoder, the orange block corresponds to the cross-attention fusion module, and the purple block represents the prediction head.
Figure 5. Detailed architecture of the proposed cross-attention fusion model. The green branch represents the sensor time-series encoder, the blue branch denotes the text encoder, the orange block corresponds to the cross-attention fusion module, and the purple block represents the prediction head.
Futureinternet 18 00136 g005
Table 1. Comparison of related multi-modal fusion studies in smart city and urban computing.
Table 1. Comparison of related multi-modal fusion studies in smart city and urban computing.
StudyModalitiesTaskFusion/ModelKey Limitation vs. Our Work
[1]ConceptualSmart cities + AI overviewNo experimental model or multimodal fusion pipeline
[7]VariousSystematic reviewReview only; does not propose or evaluate a specific fusion architecture
[11]Traffic (multi-agent)Flow prediction + anomalyMulti-agent AINot multimodal text + sensor; focuses on agents rather than cross-modal fusion
[15]Sensors + social/textTraffic event detectionMulti-modal GANFocuses on event detection rather than severity classification; alignment analysis limited
[16]Cross-domainTaxonomy + advancesBroad outlook; no end-to-end validated pipeline for text + traffic sensors
[17]MultimodalSurveyGeneral multimodal fusion; not tailored to smart city traffic severity prediction
[18]MultimodalSmart city multimodal frameworkPositional-attention DLNot focused on sensor time-series + textual reports alignment for traffic severity
[19]Sensors (traffic + env)Smart city optimizationML fusionFusion of sensors only; no textual modality
[20]SensorsDeep supervised learning supportSensor fusionNo textual modality; not designed for multimodal urban reports
Table 2. Dataset statistics and modality characteristics.
Table 2. Dataset statistics and modality characteristics.
ModalityDatasetData TypeTemporal ResolutionSpatial ScaleTime Span Used in This StudySize Available in SpanSize Used in ExperimentsKey FieldsNotes
SensorMETR-LATraffic speed time-series5 min207 loop detectors1 March 2012–27 June 2012207 sensors × 34,272-time stepsSame (full)timestamp, sensor ID, speedRegular sampling; missing values handled via interpolation; z-score normalization
TextNYC 311Citizen textual reportsIrregular (event-driven)Citywide (NYC)1 March 2012–27 June 2012570,998 reports120,000 reports (sampled)created date, complaint type, descriptor, locationNoisy and sparse relative to sensors; cleaned and temporally aligned using ±Δ window
Table 3. Congestion severity label definition and thresholds.
Table 3. Congestion severity label definition and thresholds.
Congestion SeveritySpeed Range (Quantile-Based)Interpretation
Lowv(t) > Q0.75Free-flow traffic; low congestion
ModerateQ0.50 < v(t) ≤ Q0.75Mild congestion; minor slowdown
HighQ0.25 < v(t) ≤ Q0.50Heavy congestion; sustained slowdown
Severev(t) ≤ Q0.25Severe congestion; critical slowdown
Table 4. Preprocessing configuration for sensors and text.
Table 4. Preprocessing configuration for sensors and text.
ComponentStepConfigurationRationale
SensorMissing valuesLinear interpolationPreserves temporal continuity
SensorNormalizationz-score (train split only)Prevents leakage; stabilizes training
SensorWindowingL = 12 steps (1 h)Captures short-term dynamics efficiently
TextCleaninglowercase, remove URLs, normalize spacesReduces noise and non-semantic tokens
TextTokenizationBERT tokenizerConsistent with pretrained encoder
TextMax length128 tokensBalanced coverage vs cost
TextEmbeddingBERT pooled output ([CLS])Captures sentence-level semantics
TextMulti-report aggregationMean poolingStable fixed-size context per time step
Table 5. Baseline models and fusion strategies.
Table 5. Baseline models and fusion strategies.
Model IDBaselineModalities UsedCore Encoder(s)Fusion StrategyDescription
B1Sensor-onlySensorGRUNoneSensor window → GRU → MLP → Softmax
B2Text-onlyTextBERTNoneAligned text → BERT → pooling → MLP → Softmax
B3Early FusionSensor + TextGRU + BERTConcatenation [ h s ( t ) ; h t ¯ ] → MLP → Softmax
B4Late FusionSensor + TextGRU + BERTDecision-level averagingAvg (ŷs, ŷt)
P (Ours)Cross-Attention FusionSensor + TextGRU + BERTCross-attention + concatSensor query attends over report set H t a ( t ) ; then   [ h s ( t ) ; a ( t ) ] → MLP
Table 6. Experimental settings and hyperparameters.
Table 6. Experimental settings and hyperparameters.
CategoryParameterValue
DataSensor window length L12-time steps (1 h)
DataSampling interval5 min
DataAlignment window Δ30 min
DataNumber of Severity classes4
TextMax token length128
ModelSensor encoderGRU (hidden size = 64)
ModelText encoderBERT-base (bert-base-uncased), pooled [CLS], frozen
ModelFusionCross-attention (single-head, report-level) + concat
ModelMLP head2 layers (64 → 32 → 4)
TrainingOptimizerAdam
TrainingLearning rate1 × 10−4
TrainingBatch size64
TrainingEpochs30 max (early stopping, patience = 5)
TrainingDropout0.2
EvaluationRuns3 seeds, report mean
ModelAttention dimension d64
ReproducibilityReport samplingFixed subset of 120,000 reports (uniform over time, fixed seed)
Table 7. Main performance comparison on the test set.
Table 7. Main performance comparison on the test set.
ModelModalitiesAccuracyMacro-F1Macro-PrecisionMacro-Recall
B1: Sensor-onlySensor0.81130.80720.81350.8023
B2: Text-onlyText0.22570.09210.05640.2500
B3: Early Fusion (Concat)Sensor + Text0.82830.82310.82960.8187
B4: Late Fusion (Ensemble)Sensor + Text0.80630.80380.81670.7965
Proposed: Cross-Attention FusionSensor + Text0.81130.80720.81610.8023
Table 8. Ablation study results.
Table 8. Ablation study results.
VariantTextSensorAlignmentFusionMacro-F1Δ vs. Best Fusion
Best Fusion (Concat)Concatenation0.8231
− Text (Sensor-only)None0.8072−0.0159
− Sensor (Text-only)None0.0921−0.7310
Late Fusion (Ensemble)Avg probs0.8038−0.0193
Proposed (Cross-Attention)Cross-attention0.8072−0.0159
Note: ✓/✗ denote presence/absence of a component; — indicates not applicable; Δ denotes performance difference relative to the best fusion model.
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

Alkhater, N. Multi-Modal Artificial Intelligence for Smart Cities: Experimental Integration of Textual and Sensor Data. Future Internet 2026, 18, 136. https://doi.org/10.3390/fi18030136

AMA Style

Alkhater N. Multi-Modal Artificial Intelligence for Smart Cities: Experimental Integration of Textual and Sensor Data. Future Internet. 2026; 18(3):136. https://doi.org/10.3390/fi18030136

Chicago/Turabian Style

Alkhater, Nouf. 2026. "Multi-Modal Artificial Intelligence for Smart Cities: Experimental Integration of Textual and Sensor Data" Future Internet 18, no. 3: 136. https://doi.org/10.3390/fi18030136

APA Style

Alkhater, N. (2026). Multi-Modal Artificial Intelligence for Smart Cities: Experimental Integration of Textual and Sensor Data. Future Internet, 18(3), 136. https://doi.org/10.3390/fi18030136

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop