This study did not involve human participants. All data were utilized in accordance with applicable usage policies; therefore, ethical approval and consent to participate were not required.
The proposed framework integrates multimodal visual, behavioral, and contextual data to assess participatory public art. Following data acquisition and preprocessing, spatiotemporal features are extracted using a pretrained 3D CNN and encoded into modality-specific representations. A cross-attention Transformer fuses these representations to generate a unified feature embedding, which a behavioral analytics module then analyzes to estimate engagement, interaction, and aesthetic perception. The overall workflow of the proposed framework is illustrated in Figure 1.
Step 1: Dataset acquisition and preparation
To begin with, the NTU RGB+D, Kinetics-700, and AVA datasets were extracted from their respective databases and preprocessed individually using their original annotations and identifiers. Each of the three datasets was divided into training, validation, and testing sub-datasets, in the ratios of 70%, 15%, and 15%, respectively. Identifiers for each individual dataset were used during the division process to ensure that no subject, source video, or sample would appear in both the training and independent testing sub-datasets.
Step 2: Multimodal data preprocessing
Multimodal data were processed using Gaussian filtering to eliminate noise, normalization to ensure feature consistency, uniform frame sampling, and data augmentation to improve model robustness. As a result, standardized multimodal data were obtained and used for the feature extraction stage.
Step 3: Multimodal feature extraction
The encoding of the input modalities was based on their intrinsic native data representation in their respective datasets. In the case of NTU RGB+D, the RGB, depth, and skeleton sequences were individually encoded to extract modality-specific features. Similarly, for Kinetics-700, the video frames and the associated audio sequence were encoded separately. However, in the case of AVA, the image was extracted using the visual feature extractor, while the associated aesthetic score remained the ground-truth label for that image.
Step 4: Feature embedding and alignment
These features were mapped into a shared 256-dimensional latent embedding space by utilizing linear projection layers. The projection was performed separately for each modality present in any dataset. The alignments between modalities belonging to the same sample were performed using their natural temporal alignment or the sample itself. No cross-dataset pairing or concatenation was done. In case where multiple synchronized modalities were present, the aligned embeddings were then passed through the cross-modal attention layer.
Step 5: Cross-modal attention-based fusion
The cross-modal attention Transformer was employed with embeddings from each modality in each dataset. In the case of NTU RGB+D, the cross-attention learned interactions among the embeddings of the RGB, depth, and skeleton modalities. In the case of Kinetics-700, the cross-attention learned interactions between the video and audio modalities. In the case of AVA, where image data along with the aesthetic rating are provided but no behavioral or audio input is available, there was no need for cross-modal attention, and the image representation was fed directly to the prediction head.
Step 6: Model training
The above multimodal aspects were used to train the Behavioral Analytics model with the AdamW optimizer and the Cross-Entropy and Contrastive Loss functions. The model was trained over 10 epochs with a batch size of 32 and a learning rate of 0.001. These same training and optimization parameters were used for the five experiments.
Step 7: Validation and optimization
Validation of the model was performed after each of 10 training epochs. The checkpoint with the highest validation accuracy across the 10 training epochs was selected as the best model for testing on the test set.
Step 8: Performance evaluation
The performance of the optimized model was assessed on the independent test set. Performance was evaluated using accuracy, precision, recall, F1-score, mean squared error (MSE), mean absolute error (MAE), Pearson correlation coefficient (PCC), and engagement score.
The accuracy, precision, recall, and F1 score of the classification tests on NTU RGB+D and Kinetics-700 were derived from predictions on the separate test sets. Accuracy is computed as the ratio of correct classifications to the total number of samples, while precision and recall are derived using the counts of true positives, false negatives, and false positives. The F1 score is computed as the harmonic mean of precision and recall. Classification scores are derived separately for each dataset and were not aggregated between NTU RGB+D and Kinetics-700.
Validation checkpoints and intermediate outputs
To ensure reproducibility of the suggested pipeline, the intermediate outputs were validated at the end of each step. Once data processing was complete, samples were visually analyzed to validate the frame-extraction procedure, which included Gaussian filtering, normalization, and temporal synchronization across all modalities. During the feature extraction stage, the feature dimensions were verified to be consistent with the multimodal transformer. The consistency of the embeddings and attention weights was analyzed after the feature alignment and cross-modal fusion steps to validate the modality fusion process. During training, validation accuracy and loss were calculated at the end of each epoch, and the model with the highest validation accuracy was saved as the final checkpoint.
Data acquisition
For behavioral analysis, human activity modeling, and aesthetic perception assessment, NTU RGB+D36, Kinetics-70037, and AVA38 were used, respectively. The features of the datasets are summarized in Table 2. For the proposed methodology, the following three benchmark datasets covering different types of data were chosen: (1) NTU RGB+D, which consists of more than 56,000 video sequences with 60 activities performed by 40 subjects, 4 million frames with 3D skeletal data (with 25 joints per frame); (2) Kinetics-700, which includes 650,000 audiovisual clips corresponding to 700 human actions classes, each video having on average 10 s duration; and (3) AVA, comprising approximately 255,000 images with crowdsourced aesthetic ratings on a scale of 1–10.
NTU RGB+D, Kinetics-700, and AVA were deliberately chosen because they collectively capture the primary modalities required by the proposed framework, even though they were not initially intended for interactive public art assessment. For modeling participant movements and interaction behaviors, NTU RGB+D offers synchronized RGB, depth, and skeleton data. While AVA offers crowdsourced aesthetic ratings that enable assessment of perceptual responses, Kinetics-700 provides extensive, unrestricted human activity recordings that capture a variety of real-world behavioral contexts. These datasets served as complementary benchmarks for component-level validation of the proposed architecture before evaluation in real-world public art settings. It is important to note that the datasets were used independently as benchmarking sources and not combined as samples; thus, multimodal correspondence was achieved only for modalities within the same sample of a given dataset.
Data preparation and preprocessing
The NTU RGB+D (NTU RGB+D 60), Kinetics-700, and AVA datasets were obtained from their respective repositories and validated to ensure data integrity before preprocessing. Each dataset was preprocessed separately, using the original annotations and metadata, without mixing samples across datasets.
Data splitting and leakage prevention
Each dataset was split into training, validation, and test sets in the proportions 70%, 15%, and 15%, respectively. The splitting process was performed prior to model training and was repeated across all experiments. In the case of NTU RGB+D, the splitting unit was chosen based on the available unique identifiers so that samples corresponding to the same identifier are never present in both the training and test splits. In the case of Kinetics-700, samples from the same source video were kept in the same split to avoid source-video overlap between training and test samples. For the AVA, the dataset samples were split by their original identifiers, removing any duplicates or overlaps. The training split was used to train the model; the validation split was used for model selection and monitoring of convergence; and the test split was held out and never accessed prior to the evaluation phase. Therefore, none of the subjects or source samples used for training were included in the independent test split.
Dataset-specific multimodal sample construction and fusion
Multimodal samples were generated separately for each benchmark dataset and did not involve combining samples from NTU RGB+D, Kinetics-700, and AVA. In NTU RGB+D, each sample was represented as an action sequence consisting of RGB, depth, and skeleton streams of one subject performing a particular action at a certain point in time. Alignment between RGB and depth frames was performed using their common frame index, and alignment between skeleton joint coordinates and action time was also performed. Three different representations were independently encoded and then mapped into a common 256-dimensional embedding space for cross-modal attention.
In Kinetics-700, each sample consisted of an audiovisual clip, with the video frames serving as the visual representation and the audio clip as the contextual representation. Temporal alignment between the video and audio streams, based on their timestamps, was performed prior to encoding and projection into a common embedding space, followed by cross-modal attention.
In AVA, each instance consisted of an image with its crowdsourced aesthetic score. The image was used as the input for aesthetic-score regression, whereas the aesthetic score served as the prediction target and was not treated as an input modality. Because AVA does not contain synchronized behavioral or audio streams, its primary regression evaluation was performed using the available visual information. Additional architecture-level diagnostic analyses were also performed to compare the behavior of the evaluated model configurations. These diagnostic measures were used for model comparison and do not indicate that AVA contains native behavioral or temporal modalities.
In light of the above information, the proposed cross-modal Transformer operates on the modalities available in the dataset rather than requiring all three modalities in every instance. In cases where multiple modalities are available, the corresponding modality-specific embeddings are projected into the latent space, and cross-attention is applied across them. If only one modality is available as input, the corresponding encoded representation skips cross-modality attention and goes directly to the prediction head. Therefore, the benchmark data sets provide component-level evaluation of the proposed multimodal architecture, in contrast to a combined evaluation across data sets.
NTU RGB+D, Kinetics-700, and AVA were not treated as multimodal behavior datasets in the same way; they were considered distinct datasets to evaluate components separately. NTU RGB+D and Kinetics-700 were used for behavior evaluation on temporally structured data, while AVA was used for evaluation on static images with crowd aesthetic scoring. For this reason, temporal behavior evaluation measures such as attention time, interaction, and social participation were assessed using the NTU RGB+D and Kinetics-700 datasets.
Frame extraction for video
Video frames were sampled at regular intervals to reduce redundancy while preserving motion information for spatiotemporal feature learning. Equations (1)–(16) were adapted from previously published formulations32.
Ft=V(t.∆t), t=1,2,3,…….,N (1)
Here, Ft indicates the frame that has been sampled at the time step t and ∆t indicates the interval between frames. To ensure consistency across different lengths of video clips, an equal number of frames N per clip was chosen based on uniform sampling as follows:
(2)
Here T denotes the clip duration. Uniform sampling reduced computational redundancy while preserving motion information for downstream feature extraction.
Noise removal for audio/behavior signals
Gaussian filtering was applied to audio and behavioral signals to reduce sensor noise, interference, and other high-frequency artifacts, as follows:
(3)
In the above equation,
is the signal to be smoothed, and w(i) represents Gaussian weights. This filtering reduced high-frequency noise in the signals.
Data alignment across modalities
Because the modalities were acquired at different sampling rates, temporal alignment was required. Temporal alignment was performed using interpolation as follows:
(4)
where fm denotes the sampling rate of the modality m and fref denotes the reference frequency. Moreover, for feature-level alignment of data captured using various modalities, each modality was mapped onto a latent space, represented by:
Zm= Φm (Xm) (5)
where Φm represents the encoder for the respective modality.
Data augmentation for generalization
Augmentation was performed to increase robustness and avoid overfitting. Transformations like rotation, scaling, and flipping were applied to images:
I'=T(I;θ) (6)
where T denotes the transformation operation and θ is a parameter set. This helped to account for different views and lighting conditions. Augmentation strategies such as time warping and jittering were applied for temporal and behavioral data:
x'(t) = x(t+δ,δ~N(0,σ2)) (7)
where δ adds randomness to the data.
Algorithm 1: multimodal data preprocessing
Input: Dv is video data (NTU RGB+D, Kinetics-700), Db is behavioral data (skeleton, gaze), Da is audio/context data
Output: Dprocessed is pre-processed multimodal dataset
Begin
Step 1: Initialize Dprocessed = ∅
Step 2: For each sample i in the dataset do
Step 3: Frame extraction
Step 4: Extract frames Fi from video Dv(i) at interval ∆t
Step 5: Noise removal
Step 6: Apply filtering on behavioral data:
Db_clean =Filter(Db (i))
Step 7: Apply smoothing on audio data:
Da_clean = Smooth(Da (i))
Step 8: Normalization
Step 9: Normalize all modalities:
Fi_norm = normalize(Fi)
Db_norm = normalize(Db_clean)
Da_norm = normalize(Da_clean)
Step 10: Dataset-specific modality alignment
Step 11: Align modalities temporally:
[Fi_align,Db_align,Da_align]=Align([Fi_norm,Db_norm,Danorm))
Step 12: Data augmentation
Step 13: Apply transformations:
Fi_aug = Augment([Fi_align)
Db_aug = Augment([Db_align)
Step 14: Construct dataset-specific multimodal representation
Step 15: Dprocessed = Dprocessed U {Fi_aug,Db_aug,Da_align}
Step 16: End For
Step 17: Return Dprocessed
End
Algorithm 1 provided a systematic preprocessing procedure before model training. First, relevant video frames were extracted from the datasets at uniform intervals to maintain temporal consistency. Behavioral and audio signals were then filtered and smoothed to reduce noise and improve signal quality. All modalities were subsequently normalized to ensure consistent feature distributions. Temporal alignment was performed to synchronize the video frames with the corresponding behavioral and audio signals. Finally, the augmented modalities were incorporated into the training process to improve model robustness and reduce the risk of overfitting.
In the preprocessing step, 32 uniformly chosen frames per video sequence were used to give a fixed temporal input to the 3D CNN. In the case of 30 fps videos, frame sampling was done uniformly within the available temporal length instead of choosing frames after a fixed gap of five frames. Video denoising was performed using a 5 × 5 Gaussian filter with σ = 1.2. The temporal synchronization of the various modalities was performed using linear interpolation, and all modalities were first resampled to 30 Hz. Random horizontal flip with a probability of 0.5, random rotation of ±10 degrees, a scaling factor between 0.9 and 1.1, and random brightness adjustment of ±15% were among the methods employed for image augmentation. Temporal augmentation included time jittering of ±2 frames and random temporal cropping.
Spatio-temporal feature extraction using 3D CNN
Following the preprocessing step, the multimodal video data was processed using a pre-trained Pretrained ResNet3D-50 model for feature extraction. Unlike conventional 2D CNNs that process individual images, Pretrained ResNet3D-50 operates on consecutive video frames and captures both spatial appearance and temporal motion information. The extracted spatiotemporal representations were subsequently projected into the modality-specific embedding space for multimodal fusion.
To enable effective summarization of temporal information, pooling operations were applied along both the spatial and temporal dimensions of the feature maps. This reduced redundancy and improved computational efficiency. The aggregation operation was described mathematically as
Fst=Pooling(Fl) (8)
where the learned features represent both appearance features and motion features that are useful in determining engagement and interaction levels within public artworks.
Spatio-temporal feature extraction implementation
For extracting spatio-temporal features, a pretrained ResNet3D-50 network was used in the proposed architecture. Network initialization used pre-trained weights on the Kinetics-700 dataset, and Input sequences were provided to the neural network, consisting of 32 RGB images, each sized 224 x 224, yielding an input sequence length of 32 frames per image sequence. In other words, the input tensor had dimensions of 32 x 224 x 224 x 3. An initial convolution operation used a kernel of dimension 3 x 7 x 7 with a stride of (1, 2, 2). Furthermore, the subsequent residual blocks used 3 x 3 x 3 convolution kernels to learn spatiotemporal features hierarchically. The global average pooling operation yielded a compact 2048-dimensional feature vector that was mapped into a multimodal embedding space.
Modality-specific encoding
Following spatiotemporal feature extraction, visual, behavioral, and contextual features were encoded separately because the modalities differed in data structure and statistical characteristics. Each modality was mapped to its corresponding latent representation as follows:
Zm = Φm(Fm) (9)
where Fm refers to the features of modality m, Φm refers to the modality-specific encoder, and Zm refers to the encoded modality.
The encoded features of the visual modality were generated from spatiotemporal representations, which in turn were produced by 3D CNN models. The extracted features represented information on artwork structure and texture, as well as human posture and behavior. The visual encoder comprised convolutional and fully connected neural network layers. It was mathematically defined as:
Zv = σ(Wv Fv+ bv) (10)
Here, Wv and bv are the learning parameters, and σ symbolizes a ReLU-like non-linear activation function.
In cases where the data contained behavioral information, the behavioral representation included features related to motion, such as skeletal joint locations and motion sequences. These features were encoded using a sequential architecture comprising an LSTM and a temporal encoder.
Zb = LSTM(Fb) (11)
Here, Fb refers to behavioral data features. Contextual features, including audio and environmental information, were encoded using fully connected layers as follows:
Zc = Φc (Fc) (12)
Here, Zc refers to contextual features such as ambient sound and environment. To ensure compatibility across modalities, the encoded features were standardized using normalization techniques, where:
(13)
where μm and σm are the standard deviation and the mean for modality m. This normalization ensured comparable feature distributions across modalities before multimodal fusion.
Modality-specific encoder implementation
The visual encoder was built on the pre-trained ResNet3D-50 model to extract features in space and time, then used global average pooling and a fully connected projection layer to map 2048-dimensional features to a 256-dimensional latent space. The behavioral encoder used a two-layer LSTM architecture with 128 hidden units and a dropout probability of 0.1 to learn temporal dynamics from pose and motion sequences and then converted the output into a 256-dimensional embedding via a linear projection layer. The context encoder was constructed using two fully connected layers of 512 and 256 neurons with ReLU activation and dropout (0.1). All modality-specific embeddings were then layer-normalized before being fed to the cross-modal attention transformer.
Multimodal fusion using a multimodal transformer with cross-attention
The extracted visual, behavioral, and contextual feature vectors were first projected into a common embedding space using independent linear projection layers. The projected representations were subsequently transformed into Query (Q), Key (K), and Value (V) matrices for each modality. Cross-attention was then computed to model the interactions among heterogeneous modalities, allowing complementary information to be exchanged before transformer-based feature aggregation. The fused representation was finally forwarded to the behavioral analytics and prediction modules for engagement and aesthetic assessment.
Positional encoding
Positional encoding was applied to the projected feature embeddings before the cross-modal attention step to capture the temporal order of the input data. Sinusoidal positional encoding was used, following the original Transformer structure, in which positional vectors were added to the feature embeddings elementwise. This allowed the Transformer to differentiate between the temporal positions of video frames and behavior sequences in a computationally efficient manner. The position-aware embeddings were then fed into the multi-head cross-attention modules to fuse multimodal features.
Equations (14)–(16) were based on traditional cross-attention and multi-head attention formulations of the Transformer architecture, with modifications for multimodal feature fusion in the proposed framework. It should be noted that as opposed to concatenation or early fusion techniques, cross-attention enabled learning of relationships between modalities and assignment of modality-specific weights. For the -th modality present in a particular dataset, let be its encoding. In case of multiple modalities in a particular dataset, all these encodings were transformed into common embedding space and used as Query, Key, and Value for cross-modal attention mechanism. Attention modules were run on RGB, depth, and skeleton representations in NTU RGB+D dataset. In Kinetics-700 dataset, it was run on video and audio representations. For AVA, only the image representation was available as a native input modality and was used for aesthetic-score prediction. Attention-related quantities reported for AVA were treated as architecture-level diagnostic measures for model comparison rather than as cross-modal interactions among native AVA input modalities. These representations were transformed into a common embedding space:
(14)
Here, Wm and bm are learnable parameters. This projection placed all three modalities in a common embedding space. The linear projection matrices Zv , Zb, and Zc and projected the heterogeneous modality features into a common embedding space with dimension d=256. The projection weights were initialized using Xavier uniform initialization, while all bias vectors were initialized to zero. Layer normalization was subsequently applied to stabilize feature distributions before cross-modal attention learning. A critical element of the transformer is its cross-attention capability34, which allows one modality to attend to another. Cross-attention between the behavioral and visual modalities was computed as follows:
(15)
In this formulation, the query was derived from one modality, whereas the key and value representations were derived from another modality. Specifically, the Query, Key, and Value matrices were generated as, Q = HqWq, K = HkWk and V = HuWv, respectively, where Wq,Wk and Wv denote learnable projection matrices. During cross-attention, the query representation from one modality interacted with the key and value representations from another, allowing exchange of complementary semantic information. Therefore, the model was able to consider inter-modal dependencies, including the alignment of the human gaze with specific areas of the artwork and the correlation between the movement patterns and the level of engagement with the artwork. Multi-head cross-attention enabled the model to learn multiple intermodal relationships simultaneously:
MultiHead(QI,KI,VI) = Concat(head1,head2,….,headh)WIO (16)
Each attention head learns a unique set of feature interactions. Before being sent to the transformer encoder, the outputs of each attention head are concatenated and projected through a fully connected layer. A residual connection, layer normalization, multi-head cross-attention, and a position-wise feed-forward network make up each transformer encoder. While layer normalization stabilizes optimization during training, residual learning enhances gradient propagation.
Equation (17) represents the multimodal fusion used in this study to integrate visual, behavioral, and contextual features. This formulation enabled the model to capture spatial, temporal, and contextual relationships across modalities. The final multimodal representation was generated as follows:
Zfusion = Transformer(Hv,Hb,Hc) (17)
The output was kept at 256 dimensions and passed to the dataset-specific task-specific prediction head. For NTU RGB+D and Kinetics-700, the fused representation was used for behavioral and activity-related predictions, whereas the AVA visual representation was used for aesthetic score prediction.
In the case of multimodal datasets, the fusion process produced a feature vector that combines complementary features from the modalities present in the given sample. Thus, the proposed transformer model did not perform cross-modal interactions across NTU RGB+D, Kinetics-700, and AVA but performed dataset-specific cross-modal interactions. The multimodal transformer, therefore, enabled effective feature alignment, dynamic weighting, and deep interaction modeling, ensuring that the modality most important to the final output was weighted more heavily. The multimodal transformer used in this work had four encoder layers, eight attention heads, a feed-forward dimension of 1024, and an embedding dimension of 256. To reduce overfitting, dropout was applied with a probability of 0.1 after each feed-forward and attention layer. The AdamW optimizer was used to optimize the model with a batch size of 32 and an initial learning rate of 0.001.
Figure 2 illustrates the multimodal fusion system, where visual, behavioral, and contextual inputs are encoded into modality-specific representations and fused using a Multimodal Transformer with cross-attention. The fused representation captures inter-modal relationships and is used for engagement, aesthetic, and behavioral assessment.
Behavioral analytics module
After multimodal fusion, the resulting feature representation was passed to the Behavioral Analytics Module to analyze human interactions, engagement dynamics, and social activity. The fused feature vector was mapped nonlinearly into a behavioral representation as follows:
B = σ(WbZfusion + bb) (18)
where Wb and bb are the learned weights, while σ denotes an activation function. In this way, specific behavioral attributes were captured in the feature vectors. To quantify interactions, the Behavioral Analytics Module analyzed temporal patterns in participant behavior, including the observer's trajectory, proximity to the artwork, and changes in gaze direction. The time series was described as follows:
I(t) = f(Bt) (19)
where Bt represents the state of behavior at time I(t). In the case of behavior data sets with temporal structure, attention duration was derived from temporal data points labeled as attentive states. Given that I(t) is the attention state predicted at time t , then the attention duration was determined by adding the duration of consecutive intervals where I(t) = 1. Therefore, the attention duration for the dataset with sampling interval Δt was calculated as
This measure was calculated only for behavior data sets with temporal data, not for AVA.
Analysis of this function over time enabled identification of specific interaction behaviors such as observation, approach, and disengagement. The engagement score was considered a behavioral index derived from the model for temporally structured behavioral data. The engagement score was computed using the interaction intensity and temporal length of the learned behavioral representation. The engagement score could not be computed for AVA as there were no temporal behavior observations in the dataset. The engagement score was calculated as follows:
(20)
where wt is the importance weight at the period stage t, and T is the total observation time period. This modeling approach ensured that the model emphasized long-term interactions rather than short-term actions. To evaluate social participation in the context of public art, the module was also used to calculate the level of social interaction based on the number of people involved and each person's activity level. The social-interaction measure was calculated as follows:
(21)
where N denotes the number of participants and Ei denotes the engagement rate of the i-th participant. This measure represented the degree of participant engagement and social interaction modeled by the behavioral analytics component. Finally, these parameters were combined to provide a holistic analysis of social behavior:
O = {E,I,S } (22)
where O includes such aspects as engagement rate, social participation, and interactions.
The Behavioral Analytics Module generated three outputs: Engagement Score, Interaction Level, and Social Participation Index. The Engagement Score was standardized to the interval [0,1], with scores <0.40 classified as low engagement, 0.40–0.70 as medium engagement, and >0.70 as high engagement. All observations were initialized with equal weights, which were subsequently adjusted by the Transformer attention mechanism. Only the datasets that had temporal data on participants or activities were analyzed using the Social Participation Index and Interaction Level. The AVA did not use these variables.
Statistical analysis
The same training, validation, and test partitions were used for all five experiment repetitions, and each run's model initialization and training were conducted with a different random seed. Partition assignment was determined prior to the experiments and remained unchanged across subsequent runs; thus, no data samples or subjects were moved between sets. The proposed framework and baseline models were examined under the same experimental settings for each corresponding run. Results are reported as the mean ± standard deviation (SD) across the five runs. Using the t-distribution, the five run-level findings were used to compute the 95% confidence interval (CI). The results from the same five runs were used to perform paired two-sided t-tests comparing the suggested framework with each baseline model. For ablation experiments, the entire proposed framework was evaluated similarly against each reduced-modality or component alternative. The threshold for statistical significance was set at p < 0.05.