4.1. Architecture Design
The proposed trust assessment method targets distributed power grid terminals operating under a zero-trust access control paradigm, where trust is continuously evaluated based on observed behavior rather than established once at admission.Terminals are treated as networked entities whose security states evolve over time and may be affected by both local execution characteristics and interactions with other terminals.
Figure 2 presents the overall architecture of the proposed method and illustrates how behavioral perception, representation learning, relational modeling, and trust decision interfaces are integrated.
Each terminal is modeled as a node observed over discrete time windows. During each window, heterogeneous behavioral signals are collected from multiple sources, covering network traffic statistics, operational environment indicators, and hardware or event measurements at the kernel level. These observations jointly characterize terminal behavior from complementary perspectives. Relying on a single observation layer, such as network traffic alone, provides limited visibility into execution anomalies that manifest primarily at the host or system level, which motivates the use of multidimensional behavioral perception in the proposed architecture.
The collected behavioral features form a high dimensional and partially redundant representation. Direct aggregation of heterogeneous features increases dimensionality and noise, which complicates relational reasoning and degrades generalization. The architecture therefore incorporates a learned feature encoding component that transforms raw multisource observations into compact representations while preserving discriminative behavioral patterns relevant to trust assessment. This design choice reflects the assumption that effective trust inference depends on capturing intrinsic behavioral structure rather than raw feature magnitude.
Beyond individual behavior, terminal trust states exhibit dependency across nodes. Distributed terminals communicate and interact through network connections, and coordinated or lateral attack behaviors can induce correlated risk patterns across multiple nodes. Modeling terminals as independent entities fails to capture such collective effects. The proposed architecture addresses this dependency by explicitly representing relationships between terminals and performing relational reasoning over data structured as graphs.
Relationships between terminals are not limited to explicit communication links. Terminals that exhibit similar behavioral patterns may share latent risk characteristics even in the absence of direct interaction. The architecture therefore distinguishes between two complementary relational views: a topological view derived from observed communication relationships and a feature view derived from behavioral similarity among terminals. These views encode different aspects of dependency and are jointly incorporated into the trust assessment process.
Based on the learned terminal representations and relational reasoning results, the architecture produces a trust score for each terminal that reflects both individual behavioral risk and contextual influence from related nodes. The trust score serves as an intermediate decision variable that is subsequently mapped to discrete trust levels and associated access permissions, enabling granular and adaptive access control for distributed power grid terminals. Subsequent subsections detail the specific representation learning mechanisms, graph construction strategies, and optimization objectives that realize this architecture.
4.2. Multisource Behavioral Feature Encoding
Behavioral observations collected from distributed terminals exhibit both diversity and structural complexity. Network traffic reflects external interaction patterns, operational environment indicators capture execution load and resource usage, and hardware or events at the kernel level expose system activity at a low level. Each source emphasizes a different aspect of terminal behavior, and none of them alone provides a complete characterization of terminal trustworthiness. When these heterogeneous signals are jointly considered, the resulting feature space becomes high dimensional and partially redundant, which poses challenges for both representation learning and subsequent relational modeling.
The feature encoding strategy adopted in this work is designed to address two closely related objectives. One objective is to integrate heterogeneous behavioral signals into a unified representation that preserves patterns relevant to trust while suppressing noise and redundancy. The other objective is to control representation dimensionality so that reasoning based on graphs over large populations of terminals remains computationally feasible.
Figure 3 provides a structural overview of the feature fusion and selection process used to satisfy these objectives.
As illustrated in
Figure 3, the encoding process begins with multisource behavioral perception and progresses toward increasingly compact representations. The figure does not depict a rigid processing pipeline, but rather summarizes how raw observations are progressively transformed into representations suitable for relational learning. Early stages focus on establishing a consistent numerical feature space, while later stages emphasize representation compression and discriminative refinement. This separation reflects the design choice to decouple data normalization from representation learning, avoiding premature assumptions about feature relevance.
The sources of behavioral observations are summarized in
Figure 4. Network traffic features capture communication behavior at the protocol and flow level, operational environment features describe runtime resource consumption, and events at the hardware or kernel level provide visibility into system internals that are weakly expressed at higher layers. These sources are collected within aligned observation windows and jointly characterize terminal behavior under both benign and adversarial conditions.
Raw observations from these sources are first preprocessed to ensure numerical consistency and stability. Invalid records are removed, uninformative or constant features are filtered, and categorical fields are transformed into numerical representations. This preprocessing stage does not attempt to manually optimize feature utility. Its role is to establish a stable input space for representation learning while minimizing bias introduced by handcrafted feature engineering.
To integrate the heterogeneous behavioral features into a compact representation, a variational autoencoder is employed. Direct concatenation of preprocessed features expands dimensionality and mixes signals with different statistical properties, which can obscure latent behavioral structure and amplify noise. The variational formulation introduces a continuous latent space that regularizes representation learning and encourages smoothness across samples. Let
x denote the preprocessed feature vector associated with a terminal and let
z denote its latent representation. The variational objective maximizes the Evidence Lower Bound (ELBO), formulated as:
where
denotes the expectation over the latent variable
z sampled from the approximate posterior
produced by the encoder, and
denotes the likelihood of the reconstruction generated by the decoder. The Kullback-Leibler divergence term,
constrains the learned latent distribution toward the prior
and limits overfitting to idiosyncratic variations in individual terminals. This regularization is critical for ensuring that latent representations remain comparable across devices and time windows.
In practice, to compute the Kullback-Leibler divergence term analytically, we assume the prior distribution
is a standard multivariate isotropic Gaussian, i.e.,
. The approximate posterior
is modeled as a multivariate Gaussian with a diagonal covariance matrix, formulated as
. To ensure numerical stability and guarantee that the variance remains strictly positive during implementation, the encoder network is designed to output the mean vector
and the logarithmic variance vector
. Under these standard distribution assumptions, the general integral form in Equation (
2) can be analytically simplified into the following closed form expression:
where
d is the dimensionality of the latent space, and
and
are the
j-th elements of the mean vector
and the logarithmic variance vector
, respectively. Here, the actual variance is naturally constrained to be positive as
. This closed form loss is directly optimized during training.
The encoder is implemented as a multilayer perceptron comprising two layers with hidden dimensions 64 and 32 and ReLU activations. It outputs the parameters of the latent distribution, namely the mean and logarithmic variance v. Latent samples are obtained using the reparameterization trick to enable optimization using gradients.The decoder mirrors the encoder structure and reconstructs the input features using a linear output layer. Training minimizes reconstruction error together with the KL regularization term. Adam is used as the optimizer and mean squared error is adopted to quantify reconstruction quality. Early stopping is applied to prevent overfitting, and training samples are shuffled across epochs to avoid sensitivity to sample ordering.
Not all preprocessed features are passed through the variational encoder. Certain fields are preserved outside the fusion stage because they serve as structural anchors in subsequent graph construction and node association. Transforming these fields in the latent space would introduce uncontrolled interactions that weaken their semantic role in relational modeling.The variational encoder is therefore applied only to the remaining behavioral dimensions, producing compact representations that function as node attributes in the trust model based on graphs.
After variational compression, the feature space is reduced from 242 dimensions to 76. While this reduction significantly decreases redundancy, the remaining dimensionality still imposes a nontrivial computational burden for graph convolution with multiple layers, where complexity scales with both node count and feature dimension. Consequently, a second stage selection is applied to retain the feature subset that contributes most to supervised discrimination. Feature importance is estimated using a Random Forest classifier trained on labeled data. For a given feature
, its impurity reduction importance is computed as
where
T denotes the set of split nodes using
, and
represents the impurity reduction achieved at split
t. Aggregating across all trees yields the importance at the forest level:
where
F denotes the set of trees. To balance classification performance and computational cost, the optimal feature subset size was determined via 5-fold cross-validation. Based on the validation results, the top 25 features with the highest importance scores were retained. This selection achieves an additional 67% reduction relative to the 76-dimensional fused representation. The resulting compact feature vectors constitute the node attributes used for relational modeling across two domains in the following sections.
4.3. Dual Graph Construction
Relational dependency among terminals is represented using two complementary graphs defined over the same node set. Each node corresponds to a terminal observed within a time window and is associated with a compact behavioral feature vector produced by
Section 4.2. Let
denote the node feature matrix, where
n is the number of terminals and the
i-th row
is the feature vector of node
i. Let
denote the adjacency matrix derived from observed communication behavior.
Communication relationships are extracted from traffic records using identifiers such as source and destination MAC addresses. Although communication records are inherently directional, the relational encoder in this work is based on graph convolution with a symmetric adjacency. The adjacency matrix is therefore constructed as an undirected graph by setting whenever communication between terminals i and j is observed in either direction within the time window, and otherwise. This design retains connectivity information required for message passing while avoiding inconsistencies between directed edges and symmetric normalization in graph convolution.
The topology graph is defined as , which encodes explicit interaction structure. This view is informative when correlated risk propagates along communication paths. However, communication alone does not capture latent similarity among terminals that exhibit comparable behavioral patterns without direct interactions.A second graph is therefore constructed to represent proximity in feature space, enabling relational reasoning over implicit behavioral dependencies.
The feature graph is defined as
, where
is computed from a weighted combination of behavioral similarity and the topology prior. For nodes
i and
j, the relationship score is
where
controls the contribution of similarity and topology. The similarity term
is computed using cosine similarity,
Cosine similarity is used because it captures directional alignment in high dimensions and reduces sensitivity to feature magnitude. An edge is established in the feature graph when
exceeds a threshold
, which controls sparsity and the strength of coupling based on similarity. The threshold is treated as a hyperparameter and is selected on a validation split to balance relational coverage and noise amplification in message passing.
Algorithm 1 summarizes the construction of
.
| Algorithm 1 Feature domain adjacency matrix construction |
| Require: Topology adjacency matrix A, feature matrix X, balance parameter , threshold |
| Ensure: Feature-domain adjacency matrix |
- 1:
- 2:
for each pair of nodes do - 3:
- 4:
- 5:
if then - 6:
- 7:
end if - 8:
end for - 9:
Symmetrize by
|
4.4. Dual-Domain Graph Encoder
Given
and
, embeddings tailored to each domain are learned via graph convolution. Self loops are added to preserve node identity during message passing. For a generic graph with adjacency matrix
A, the augmented adjacency and degree matrices are defined as
and
. The propagation rule at each layer follows the normalized graph convolution operation.
where
denotes the node embedding at layer
l,
denotes trainable weights, and
is a nonlinear activation.
In the feature domain, the encoder operates on
and produces embeddings
,
with initialization
where
and
is the corresponding degree matrix. In the topology domain, the encoder operates on
A and produces embeddings
,
where
and
is its degree matrix. The final domain embeddings are denoted by
and
.
The two domains encode distinct dependency signals and are not expected to contribute equally across nodes or time windows. An attention mechanism at the node level is introduced to adaptively fuse
and
into a unified representation for trust inference. Let
and
be the final embeddings of node
i in the feature and topology domains. Unnormalized attention scores are computed as
where
and
are trainable parameters and
q is the attention vector. The normalized weights are obtained using a softmax applied in both directions,
The fused embedding is then computed as
Stacking
yields the unified embedding matrix
.
Algorithm 2 summarizes the embedding generation process in a form consistent with the above formulation.
| Algorithm 2 Node embedding generation in the graph encoder for two domains |
| Require: Topology adjacency matrix A, feature adjacency matrix , feature matrix X |
| Ensure: Unified node embedding Z |
- 1:
, - 2:
, - 3:
, - 4:
for to L do - 5:
- 6:
- 7:
end for - 8:
for each node i do - 9:
Compute using Equations ( 12) and ( 13) - 10:
Compute using Equation ( 14) - 11:
- 12:
end for - 13:
|
4.5. Objective Function with Constraints Across Domains
The unified embedding
Z supports trust inference at the node level, but training benefits from an objective that explicitly controls how information is shared across domains. Embeddings from the feature and topology domains should capture compatible signals related to node labels, while retaining information specific to each domain that is not redundant.
Figure 5 summarizes the constraint structure used in the objective design.
A commonality constraint encourages the two domains to preserve consistent pairwise similarity structure. Let
and
denote domain embeddings at a given layer after normalization. The similarity matrices are constructed as
The commonality loss is then defined as the Frobenius norm of their difference,
A complementarity constraint encourages the two domains to retain information specific to each domain by penalizing excessive dependence between each domain embedding and a combined embedding. The combined embedding is defined as
where
is a mixing coefficient. Dependence is measured using the Hilbert-Schmidt Independence Criterion. Let
and
be Gram matrices computed by an RBF kernel over
and
, and let
be the centering matrix. The HSIC term is computed as
where the RBF kernel is
The corresponding dependence term for the embedding from the feature domain is computed analogously,
The complementarity loss is defined as
The trust inference task is implemented as supervised node classification. Let
L denote the labeled node set,
denote the one-hot ground truth label of node
l, and
denote the predicted label distribution. The cross entropy loss is
where
for binary security-state classification. The total training objective is
where
and
control the strength of the commonality and complementarity constraints.
The unified embedding
Z is used for security state inference at the node level through a downstream classifier. The classifier consumes
Z to produce label predictions
used in Equation (
24). The specific classifier choice and its hyperparameters are treated as implementation details and are described in the experimental setup.
4.6. Trust Score Interpretation and Access Control Mapping
The trust assessment model produces, for each terminal node, a continuous confidence score that reflects the likelihood of the terminal being in a normal operational state. This score is derived from the output of a downstream classifier operating on the learned node embedding Z. Rather than treating the classification result as a binary decision, the proposed framework interprets the confidence score as a trust indicator that supports graded access control.
Let p denote the predicted probability that a terminal operates in an anomalous or normal state. This probability serves as the basis for trust evaluation and is mapped to discrete trust levels through predefined intervals. The mapping is implemented at the edge controller and functions as a decision interface between trust inference and access control enforcement. The use of discrete trust levels simplifies policy execution while retaining sensitivity to variations in model confidence.
Table 1 summarizes the trust level definitions and their corresponding permission assignments. Higher confidence values indicate stronger evidence of benign behavior and result in broader access privileges, whereas lower confidence values trigger progressively stricter restrictions. Terminals assigned the lowest trust level are isolated from the system to prevent potential security risks.
The threshold values defining the trust intervals are selected to balance security sensitivity and operational continuity and can be adjusted according to deployment requirements. Once a trust level is determined, the edge controller enforces the corresponding access policy by exposing only the permissions associated with that level. This design confines potentially risky terminals to minimal functionality while allowing trusted terminals to participate fully in grid operations, thereby supporting adaptive zero-trust access control at a fine grain.
To demonstrate the practical application of our proposed trust assessment framework we designed a simulated validation scenario mapping the continuous trust scores to specific access control actions based on the permission assignment rules defined in
Table 1. We selected four representative distributed terminals exhibiting distinct behavioral patterns. As illustrated in
Table 2 EV Charger A exhibits normal operational behavior yielding a trust score of 0.95 which falls into the High trust category and grants it Maximum permissions such as unrestricted data exchange within the grid. EV Charger B displays occasional communication delays resulting in a score of 0.85. This assigns it to the Medium high trust level where it receives General permissions allowing routine telemetry and standard commands. Conversely EV Charger C shows high frequency request spikes degrading its score to 0.60. Consequently the system downgrades it to the Medium low trust level applying Limited permissions that restrict it to read only telemetry to prevent potential denial of service attacks. Finally EV Charger D matches known attack signatures and receives a severely low score of 0.12 placing it in the Low trust category. This triggers Isolation permissions resulting in immediate node isolation and packet dropping. This simulated validation confirms that the continuous trust scores can be effectively translated into dynamic fine grained access control policies enhancing grid resilience.