Next Article in Journal
Action-Space-Oriented Reinforcement Learning Compensation for PI-TPS-Controlled Low-Voltage DAB Converters Under Input-Voltage and Load Variations
Previous Article in Journal
DisasterScope: A Multi-Source Multimodal Dataset and Benchmark for Disaster Response and Severity Assessment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Explainable Predictive Jurisprudence for Anticipating Legal Doctrine Evolution in Dynamic Judicial Systems

Applied College, University of Tabuk, Tabuk 47512, Saudi Arabia
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(17), 4051; https://doi.org/10.3390/electronics15174051
Submission received: 6 July 2026 / Revised: 1 September 2026 / Accepted: 3 September 2026 / Published: 7 September 2026

Abstract

Legal systems evolve continuously in response to legislative reforms, emerging judicial interpretations, and shifting societal expectations, making it increasingly difficult to anticipate changes in legal precedent using conventional analytical methods. This study introduces an explainable artificial intelligence framework for predictive jurisprudence that captures the temporal evolution of legal reasoning by jointly modeling semantic, structural, and causal relationships within judicial decisions. The proposed framework integrates neural temporal graph networks to learn evolving citation dependencies, dynamic topic modeling to characterize changes in legal doctrines over time, and causal-inference techniques to distinguish genuine jurisprudential influence from spurious associations. To enhance transparency, the predictive process is complemented by GNNExplainer, enabling the identification of the legal principles, precedents, and citation patterns that most strongly influence model predictions. The framework is evaluated using the Free Law Project and LePaRD benchmark datasets and demonstrates superior performance over existing approaches in detecting causal judicial influences and accurately quantifying precedent evolution. Its practical applicability and interpretability are further validated through expert legal assessment and historical backtesting against documented jurisprudential shifts. The experimental findings demonstrate that integrating explainable machine learning with causal legal analytics provides reliable early indicators of doctrinal change, offering valuable decision-support capabilities in legal environments.

1. Introduction

The philosophy of legislation is dynamic and evolves over time through legislative amendments in response to different events and societal changes. Case law is a fundamental element of public law frameworks. It is composed of networks of influence with different layers in which previous decisions control upcoming rules. However, the majority of computational paradigms consider the legal codes as static information, which engenders ignoring temporal law reasoning links.
This recent fast progress in artificial intelligence paradigms has allowed for better processing of natural languages and graphs, which has enhanced the management of difficult legal cases. In this regard, transformer-based language models are currently utilized to analyze legal textual content. In the same context, graph neural networks [1] are increasingly automated to represent citation networks. However, these advances remain restricted in interpreting critical legal decisions, providing causal explanations, and considering temporal characteristics.
To address the challenge of tracking temporal developments, this research proposes a new framework for predictive jurisprudence. This framework considers the concept of precedent drift as the simultaneous evolution of legal systems through causal, semantic, and structural dimensions. In this way, it becomes possible to move beyond simply analyzing past legal changes to predicting future jurisprudential shifts by integrating causal reasoning, dynamic thematic modeling, and time-based graph learning.
Transparency is a relevant issue in legal AI. Closed models [2] in legal contexts need explanations that should be aligned with case law. To address this issue, our system involves explanations using the GNNExplainer [3] model to classify important cases.
The suggested model is assessed on large-scale legal datasets, such as Free Law Project and LePaRD. The model enables both a high predictive accuracy and a practical vision for legal practitioners and policymakers.
The contributions of this study are as follows:
-
A unified precedent drift predictive model combining causal, semantic, and structural legal changes.
-
Hybridizing this model with TGNN, DTM, and causal inference for forecasting.
-
Adding an explainable layer via GNNExplainer, for identifying and analyzing precedent drift.
-
Experimenting with the proposed model and comparing with standard algorithms on two datasets (Free Law Project and LePaRD).
The paper raises the following research questions:
-
How does one model and enumerate precedent drifts in evolving legal applications?
-
Is explainable AI able to enhance explainability in predictive legal models?
-
How does causal inference distinguish true precedent influences from correlations?
-
How does temporal graph learning, semantic and causal modeling optimize the prediction of legal cases?

2. Related Works

Despite the excessive progress achieved in the field of using artificial intelligence techniques in analyzing linguistic texts, legal reasoning, learning dynamic systems, and studying graphs, most of the current smart technologies are unable to simultaneously process different dimensions, such as causal, semantic, and structural dimensions, in one problem.

2.1. Summary of State of the Art

The study in [4] presents a solution for predicting legal citations based on temporal graph neural networks (TGNNs). Compared to standard GNNs, this system achieves better recognition of local and global structural patterns. Despite this, this system ignores semantic data extracted from legal texts and causal inference. Besides, it does not explain citations, which is important in applicative contexts requiring interpretability, such as supporting legal decision-making.
In another study [5], time-based neural networks with attention mechanisms were proposed to generate timelines of events. This study accurately determines temporal dependencies and sequence patterns, even for heterogeneous datasets. However, the study ignores domain-specific inferences such as legal semantics, case law structures, or causal relationships, which minimizes the performance of modeling jurisprudence.
The study in [6] introduces a temporal heterogeneous GNN relying on patent data. The used GNN network combines semantic and structural features to predict technology convergence. However, this system lacks both causal inference and explainability. Moreover, it is considered a technological advance rather than a legally interpretable justified framework.
The authors in [7] implement a hyperbolic temporal GNN to design a hierarchical relationship for dynamic knowledge graphs. The model can efficiently represent complex relationships due to the use of hyperbolic spaces, which allow for better resolution of knowledge graph completion tasks. However, this system does not consider semantic drift or causal influence and is not dedicated to legal data since it focuses on learning reasoning rather than predictive reasoning.
The framework in [8] resolves a legal case retrieval problem using a graph structure with a set of textual features. The model concludes that hybridizing textual similarity with citations enhances the retrieval efficiency.
However, the model is static and does not account for temporal evolution. It also lacks predictive capabilities and causal reasoning, focusing instead on similarity-based retrieval rather than forecasting legal changes.
Table 1 discusses recent state-of-the-art methods using temporal GNN and graph evolution models applied to legal data and to other data fields.
Recent studies have increasingly explored multi-scale graph interaction [17], collaborative spatial-channel representations [18], and deep transfer learning [19] to improve the extraction and transfer of complex relational patterns. Such approaches demonstrate the value of combining multi-level structural representations with transferable knowledge, providing methodological motivation for models that must operate on evolving relational systems. Similarly, machine-vision-driven physics-informed neural networks [20] integrate visual observations with domain constraints, illustrating how data-driven representations can be strengthened through explicit structural or knowledge-based constraints. These developments are conceptually related to the present work because predictive jurisprudence also requires the integration of heterogeneous evidence rather than relying exclusively on isolated textual or graph representations.
Recent work has also investigated fault-tolerant and adaptive intelligent control under disturbances and system failures. For example, the study in [21] investigates fixed-time adaptive smooth control with relaxed performance constraints in the presence of aerodynamic interference and actuator faults. Such research highlights the importance of maintaining reliable decision performance under uncertainty, disturbances, and partial system degradation.
Across these works, strong individual capabilities (structure, semantics, or temporal modeling) emerge. But no unified, explainable, and causal framework exists. This gap justifies the necessity and novelty of the proposed predictive jurisprudence framework.
Further surveys [22], studies [23,24,25], theses [26,27], books [28], and chapters [29] investigate the integration of graph neural networks, causal inference, explainable AI, and advanced legal analytics for modeling complex legal reasoning and evolving jurisprudence. The following section further discusses this research gap.

2.2. Critical Discussion and Research Gap

Despite rapid progress in graph-based and AI-driven modeling, existing state-of-the-art approaches exhibit three fundamental limitations:
-
Fragmentation across modeling dimensions: Most works focus on one aspect only: TGNN-based models capturing structural evolution but ignoring semantics and causality, NLP models (such as BERT) capturing semantic understanding but ignoring graph structure, or causal models focusing on cause–effect relationships but lacking temporal graph context. Indeed, even advanced hybrid approaches (such as temporal heterogeneous GNNs) only partially integrate structure and semantics, leaving out explainability and causal reasoning.
-
The scarcity of predictive models adopted in law: Most current legal AI research, such as CaseGNN, focuses on retrieval, classification, and similarity but does not define or quantify precedent deviations, nor does it provide predictive tools for legal change.
-
Lack of intelligent platforms based on explainable causal law: Legal systems rely on principles of reasoning and traceable decisions. Current models (such as deep models and TGNNs) are black boxes that provide no explanation for the decisions made. Furthermore, these models do not rely on causal reasoning with graph learning. This gap is significant because legal AI needs to achieve the highest levels of transparency and accountability.
Furthermore, most modern studies rely on experiments without formal guarantees such as reliability and stability. In addition, recent surveys raise the issue of the theoretical foundations in graph learning.
The introduced system aims to find solutions to these gaps by combining structure, semantics, and causality into a single model, providing a formal definition of precedent deviation and enabling the prediction of legal development, not just analysis, with the possibility of interpretation.
As a conclusion, it is the conceptual incompleteness, not the performance, which represents the main issue of current legal systems. No existing approach simultaneously answers the following questions: How do legal systems evolve structurally? Why do they evolve (causality)? What concepts drive the evolution (semantics)? How does one explain and trust predictions?
This work is the first to address all four dimensions, establishing predictive jurisprudence as a new, unified research paradigm.

3. Methods and Material

This section highlights the mathematical modeling of the proposed framework, its algorithmic architecture, the proposed TGNN, DTM, the introduced theorems, and the explainable GNNExplainer model.

3.1. Problem Formulation and Preliminaries

We model an evolving legal system as a temporal attributed directed graph sequence:
G1:T = {Gt}t=1T,Gt = (Vt,Et,Xt,At)
where Vt is the set of cases decided up to time t, Et ⊆ Vt × Vt are directed citations (edge j  →  i indicates case i cites j), At is the adjacency matrix, and Xt ∈ R∣Vt∣×d are node features derived from texts (opinions, headnotes, statutes referenced). Each node i has timestamp ti ≤ t, document Di, and latent doctrinal state zit.
We define a prediction target, Yit, capturing doctrinal outcome (e.g., issue classification, overruling risk, or influence score). The task is to learn a mapping
f Θ : ( G 1 : t , X 1 : t )     Y ^ t + 1 : t + τ ,   Δ ^ t + 1 : t + τ ,
that forecasts both future outcomes and precedent drift over horizon τ.
The precedent drift is formulated as follows:
Let
Δt = α Δtstruct + β Δtsem + γ Δtcausal,
where the structural, semantic, and causal components quantify changes in citation structure, topic distributions, and estimated causal influences, respectively. The parameters ( α β γ ) are set to (0.4, 0.3, 0.3), consistent with the experimental configuration.
For the binary drift-prediction experiment, a future precedent is labeled drift-positive ( Y d r i f t = 1) when its future drift score exceeds the predefined drift threshold, and drift-negative ( Y d r i f t = 0) otherwise. Importantly, the threshold is determined using the training portion of each temporal split and is not estimated from future test data, thereby preventing temporal information leakage. With
(i)
Structural drift Δtstruct = ‖At − At−1F or spectral distances;
(ii)
Semantic drift Δtsem = KL(βt‖βt−1) over topic parameters; and
(iii)
Causal drift Δtcausal = ∑(j,i)∣CEj→it − CEj→it−1∣.
The following assumptions are considered:
(A1)
Causal acyclicity in the contemporaneous graph.
(A2)
Temporal Markovity of order 1.
(A3)
Smooth semantic evolution: ‖βt − βt−1‖ ≤ Lβ.
(A4)
Bounded degree/weights.
In the suggested formulation, the precedents are considered as edges, and legal language as features. Combined with time, these aspects determine the shifting of jurisprudence.

3.2. Algorithmic Pipeline

Figure 1 highlights the proposed jurisprudence framework and how to extract the predictions and explanations from the legal context.
Figure 2 shows the architecture of the jurisprudence framework. This architecture involves the judicial phases used to achieve actionable forecasts.
The complexity of the introduced framework is as follows:
-
Complexity of TGNN: O(∑t∣Et∣d).
-
Complexity of DTM: O(TKV).
-
Complexity of causal inference: O(∣E∣log n) optimized via sampling.
Hence, the model is scalable even when using large-size datasets (such as Free Law Project and LePaRD)

3.3. Temporal Graph Neural Network (TGNN)

We adopt a continuous-time TGNN with attention:
hit = σ (Wxxit + ∑j∈Ni(t)  αijt Whhjt−), αijt = exp(ϕ(hit−, hjt−, Δt))/∑kexp(ϕ(⋅))
We use temporal encoding in ϕ and residual connections for stability.
Loss is modeled as LTGNN = Llink + Lnode with negative sampling.
From a legal perspective, TGNN captures how influential cases propagate through citations over time, modeling the evolving backbone of precedent.

3.4. Dynamic Topic Modeling (DTM)

The DTM is modeled as follows:
For each document Di at time t:
θit = LN(μt, Σt), w = Mult(θitβt)
with state evolution βt = βt−1 + ϵt, ϵtN(0,σ2I).
The objective is to model a variational ELBO with temporal smoothness regularization.
The semantic drift is:
Δtsem = KL(βt‖βt−1)
DTM tracks the rise and decline of doctrines (e.g., standards, tests), linking language shifts to jurisprudential change.

3.5. Causal Inference on Precedent Graphs

To avoid ambiguity between classification, forecasting, and causal estimation, the proposed framework defines three distinct prediction targets. Let Gt = (Vt,Et) denote the temporal citation graph at time t, Xt denote the textual/semantic representation of the legal cases, and Dt represent the proposed precedent-drift representation. The primary classification target is the binary variable
Y i   d r i f t ( t + τ ) { 0,1 }
where  Y i   d r i f t ( t + τ ) = 1 indicates that precedent i exhibits a meaningful doctrinal drift during the future prediction window [t, t+ τ ], and  Y i   d r i f t ( t + τ ) = 0 otherwise.
The second target is future citation-link prediction,
Y i j   c i t e ( t + τ ) { 0,1 }
where the value is one when a citation/influence edge between cases i and j is observed in the subsequent temporal window and zero otherwise. The third target is continuous causal-influence estimation,
C E   j   i t + τ R
which represents the estimated causal influence of precedent j on precedent i. Unlike the first two targets, this is not treated as a binary classification problem and is therefore evaluated using causal-effect estimation error.
Accordingly, accuracy, precision, recall, and F1-score are reported only for the binary classification tasks, whereas ROC-AUC is reported for the corresponding binary prediction tasks and MSE is used for continuous drift and causal-effect estimation.
The causal effect is
CEj→it = E[Yit ∣ (Aji = 1)] − E[Yit ∣ (Aji = 0)]
We identify effects via backdoor adjustment sets Zijt (e.g., prior citations, court level, topics) and estimate using doubly robust learners. This separates genuine precedent influence (binding/persuasive authority) from coincidental co-citation or topical similarity.

3.6. Joint Learning Objective

Joint optimization ensures structural, semantic, and causal signals coherently reflect legal evolution rather than isolated proxies.
L = LTGNN + λ1LDTM + λ2Lcausal + λ3Ldrift + λ4Lalign
where Lalign = ∑I ‖hit − Pθit2 aligns graph and topic spaces.

3.7. Theoretical Analysis

We propose two theorems to model the identifiability and stability of the precedent drift estimation.
Theorem 1. 
Identifiability of precedent drift. Under (A1)–(A4), if for every edge (j, i) there exists a valid backdoor set Zijt blocking all backdoor paths from Aji to Yit, and the positivity condition holds, then {CEj→it}(j,i),t are identifiable. If, additionally, the TGNN encoder is injective over (At, Xt) up to graph isomorphism and DTM parameters βt are uniquely determined (up to label permutation), then Δt is identifiable up to topic label permutation.
Proof of Theorem 1. 
  • Causal part: By Pearl’s backdoor criterion, for each (j, i, t),
    E[Yit ∣ do(Aji = a)] = ∑zE[Yit ∣ Aji = a, Zijt = z] P(Zijt = z),
    • which is estimable from observational data given positivity and correct Zijt.
    • Hence CEj→it is identifiable.
  • Structural part: Distances Δtstruct are functions of At and At−1. Since At is observed, identifiability is trivial. When using learned embeddings, the injectivity of the TGNN encoder ensures a one-to-one mapping (modulo isomorphism), so distances computed in the embedding space correspond to those in the graph space.
  • Semantic part: In DTM, the parameters βt are identifiable up to permutation under standard conditions (non-degeneracy and sufficient separation). The KL divergence is invariant to label permutation when consistently aligned; hence, Δtsem is identifiable.
  • Aggregation: Since each component is identifiable (up to permissible equivalences), their weighted sum Δt is identifiable up to topic label permutation. □
Theorem 2. 
Stability of drift estimation. Assume the TGNN update F is Lipschitz in its inputs with constant LF < 1, i.e.,
‖F(H, A, X) − F(H′,A′,X′)‖ ≤ LF(‖H − H′‖ + ‖A − A′‖ + ‖X − X′‖).
If ‖At − At−1‖ ≤ δA and ‖Xt − Xt−1‖ ≤ δX, then the embedding sequence satisfies
‖Ht − Ht−1‖ ≤ (LF/(1 − LF)) (δA + δX),
and the drift estimator Δ ^ t is uniformly stable, i.e., perturbations in inputs induce bounded changes in  Δ ^ t.
Proof of Theorem 2. 
Let
Ht = F(Ht−1, At, Xt) and Ht−1 = F(Ht−2, At−1, Xt−1).
Then,
‖Ht − Ht−1‖ ≤ LF (‖Ht−1 − Ht−2‖ + ‖At − At−1‖ + ‖Xt − Xt−1‖)
Unrolling the recursion yields a geometric series:
H t     H t 1     L F k = 0 L F k ( δ A   +   δ X )   =   ( L F 1 L F )   ( δ A   +   δ X ) .
Since  Δ ^ t is Lipschitz in (Ht, Ht−1, βt, βt−1, CEt, CEt−1) and each term has bounded variation (DTM smoothness and bounded CE changes), the overall estimator is uniformly stable. □
Stability ensures that small updates in case law or language do not cause erratic predictions, crucial for reliable legal decision support.

3.8. Explainability via GNNExplainer

Given a trained TGNN and a target node i, GNNExplainer learns a mask over edges and features:
m a x M E , M X   I ( Y i ;   G M E ,   X M X )     λ E ME 1     λ X M X 1
To optimize the explanation of deep decisions, continuous relaxations with sigmoid masks and gradient descent were employed. The outputs are represented by influential textual features and the salient precedent subgraph GS. The predictions are directed by the explanations via the selection of prior cases and doctrines and via enabling the auditability of judicial reasoning.

4. Results

The experiments rely on two datasets: Free Law Project [30] and LePaRD [31]. These datasets are large and involve real data. A time-division approach is applied to data from the two datasets to conduct experiments on TGNN, DTM, and causal module models. The following metrics are considered in conducting experiments: ROC curve analysis, attentional perception, robustness under noise conditions, long-term predictive power, generalizability across jurisdictions, time skew evolution, computational efficiency, interpretability, and statistical significance.

4.1. Baseline Selection and Fair Experimental Protocol

To ensure a fair and reproducible comparison, the baseline models were selected to represent complementary families of approaches relevant to predictive jurisprudence. GCN and GAT represent conventional static graph-learning approaches, whereas TGN represents temporal graph learning. BERT and LDA + SVM provide text-based semantic baselines, while DynamicTriad represents dynamic graph embedding. CausalForest provides a causal-inference baseline without joint temporal graph and semantic modeling. In addition, CaseGNN is considered a legal graph-text baseline because it combines textual information with citation structure. CaseGNN is static and was designed for retrieval rather than temporal legal prediction. In addition, CaseGNN was developed for legal case retrieval using text-attributed case graphs. Instead of the standard CaseGNN, we propose CaseGNN-adapted as a legal-domain baseline because the original CaseGNN task is legal case retrieval rather than future doctrinal-drift classification. In CaseGNN-adapted, the CaseGNN architecture is adapted to the prediction task by replacing its retrieval objective with the same binary drift-prediction output layer used by the other baselines.
All models use exactly the same FLP and LePaRD temporal partitions. The temporal protocol preserves the original principle of training on historical observations and evaluating on subsequent observations, avoiding random mixing of future cases into the training set. All models receive the same normalized citation graph, temporal snapshots, case identifiers, and standardized textual representations whenever these inputs are required by the corresponding model. The preprocessing pipeline already includes temporal slicing, tokenization, transformer-based embeddings, citation normalization, and removal of nodes with fewer than three degrees. The same predefined hyperparameter-search budget and validation folds are used for all trainable baselines. The selected parameters are reported together with the proposed model’s settings. All iterative learning models use the same maximum training budget and an identical validation-based early-stopping criterion, with the best validation checkpoint retained. All methods are evaluated using the same folds and metrics and, where applicable, drift-prediction error and causal-effect estimation error.
Transformer-based textual embeddings were precomputed once and stored. When precomputed, the embeddings were generated once for the retained legal documents and subsequently loaded as node features during TGNN training. Consequently, the reported GPU training time does not include repeated transformer encoding of the complete raw corpus during every training epoch.
To avoid circular evaluation, the target variables used for predictive assessment are constructed independently of the proposed model. Model-generated quantities, including DTM topic trajectories, TGNN attention weights, GNNExplainer outputs, and estimated causal effects, are not used to construct the evaluation labels. For future doctrinal-drift prediction, the reference outcome is derived from independently observable legal developments occurring after the prediction time. The reference event is defined according to the legal-event annotation available in the evaluation corpus and includes documented changes in the treatment or status of a precedent. The model is trained exclusively on information available before the prediction cutoff, while the reference event is determined from subsequent legal records. For causal-effect analysis, the causal module produces an estimated treatment effect under the stated causal assumptions. Its validity is evaluated using independent legal outcomes and sensitivity/robustness analyses rather than by comparing the estimate against a model-generated causal target.

4.2. Experimental Setup

To test the proposed model against other paradigms, we conduct experiments on two datasets: the first one is a large-scale legal corpus with citation graphs named Free Law Project (FLP) [30], and the second dataset is a benchmark for semantic legal retrieval, named LePaRD [31].
A phase of preprocessing is achieved on these data to guarantee an accurate representation of precedent relationships and evolving legal semantics: First, we establish a citation graph using directed and temporal edges. Then, temporal slicing (yearly snapshots), tokenization and transformer embeddings are established. Afterward, normalization of legal citations is accomplished. Finally, nodes with less than three degrees are filtered.
The validation protocol relies on 5-fold cross-validation. This temporal decomposition allows training on past data and testing on future data. Moreover, average standard deviations are used on all metrics.
The study uses the U.S. case-law corpus provided through Free Law Project/CourtListener [30]. The raw corpus is subsequently filtered and transformed into a temporal citation graph. Accordingly, the statistics reported for the experiments refer to this fixed snapshot and derived subset rather than to the continuously changing online database.
We use LePaRD [31], a large-scale dataset of U.S. federal judicial citations to precedent in context. The original resource contains approximately 1.8 million unique target passages associated with approximately 4.3 million citation contexts. It is designed primarily for legal passage retrieval rather than as a conventional case-level citation network. In the present study, LePaRD is transformed into a temporal legal-representation graph by linking citation contexts to their corresponding precedent passages and associating each observation with its publication date and court information. Therefore, the number of graph nodes and edges used in our experiments should not be interpreted as the original dataset statistics. The experiments use the 10K most-cited-passage version of LePaRD, rather than the complete all-data release.
The datasets used contain different temporal citation structures and legal semantics, which allows precedent drift modeling and assessment of predictive jurisprudence under realistic judicial conditions.
For reproducibility, all experiments were conducted using an NVIDIA GeForce RTX 4090 GPU with 24 GB of VRAM, an AMD Ryzen 9 7950X 16-core CPU, 64 GB of system RAM, and a 2 TB NVMe SSD. The software environment consisted of Python 3.10.14, PyTorch 2.2.2, PyTorch Geometric 2.5.2, and CUDA 12.1. The training was conducted using a batch size of 64 and 100 training epochs, with the same hardware and software configuration used for the proposed framework and all baseline models.
Table 2 highlights the parameters of the suggested TGNN-DTM-XAI causal-based system, while Table 3 illustrates the parameters of the standard systems. All indicated values in both tables are set after extensive empirical tests.

4.3. Quantitative Performance

Table 4 compares the predictive performance of the proposed framework against state-of-the-art baselines using multiple evaluation metrics.
Table 4 demonstrates the performance of the proposed framework on the binary future precedent-drift classification task. Table 4 highlights the superiority in performance of the suggested model across all metrics, which indicates the value of combining causal inference and semantic evolution with temporal graph learning.
To further assess the proposed model on legal prediction tasks, we test it on the Receiver Operating Characteristic (ROC) metric. Table 5 compares the ROC-AUC values obtained by our model with other standard approaches such as GAT, TGN and BERT.
Table 5 confirms that the suggested model has the best (highest) ROC-AUC values across all prediction tasks. Moreover, once again, the high values of causal influence AUC indicate the effectiveness of combining causal inference with temporal graph learning, on detecting the difference between stable precedential structures and evolving legal patterns.

4.4. Drift Prediction Analysis

To assess the performance of our jurisprudence model in predicting precedent drift on dynamic evolving legal systems, we compute prediction errors and causal-influence estimation. The findings, shown in Table 6, show how our model identifies causal, semantic, and structural evolutions that shape the jurisprudential development over time.
Because the composite drift score in Equation (3) is generated by the proposed framework, it is not used as an independent ground truth for model comparison. Instead, future doctrinal change is evaluated against independently observable legal outcomes available after the prediction time. These outcomes are constructed without using the proposed model’s DTM representation, attention weights, or causal estimates. A prediction is considered correct when the model identifies a precedent associated with an independently documented doctrinal-change event within the predefined future window. This protocol prevents the proposed model from being evaluated against targets generated by its own components.
Table 6 indicates that the proposed model significantly reduces drift prediction error, confirming the effectiveness of combining structural, semantic, and causal signals. Unlike Table 4, which evaluates binary drift classification, Table 6 evaluates the continuous future drift score. Mean squared error (MSE) is therefore used to quantify the difference between predicted and observed drift scores.
The explicit causal integration shown in Table 7 leads to substantially more accurate estimation of precedent influence. Table 7 evaluates the continuous estimation of causal precedent influence. The reported error therefore measures the deviation between the estimated and reference causal-effect values and should not be interpreted as classification accuracy.
Table 8 analyzes the relative contribution of structural, semantic, and causal components in overall precedent drift estimation.
The component contribution analysis is interpreted as an internal decomposition of the proposed drift representation, rather than as evidence that structural, semantic, or causal factors objectively account for a corresponding percentage of real-world doctrinal change. Because the components are generated within the proposed framework, these values are useful for understanding the model’s representation but do not constitute independent causal attribution.
Structural drift contributes most significantly to legal evolution, indicating that citation dynamics remain the dominant signal in jurisprudential change. However, semantic and causal components substantially improve prediction accuracy and interpretability.

4.5. Temporal Drift and Temporal Topic Evolution Analysis

To study the manner in which jurisprudence evolves over time, our model is used to quantify precedent drift on numerous temporal epochs as shown in Table 9.
Table 9 demonstrates a progressive increase in precedent drift, which indicates that current legal systems evolve quickly because of recent fast changes in society, in technological advances, and in legal complexity. Structural drift remains the leading element, replicating the changing aspect of citation networks, whereas the growth of semantic and causal drift reflects emergent doctrinal transformation and variations in legal influence patterns.
The evolution of major legal doctrines over time allows further weighing of the DTM module. Table 10 shows the evolution of different relevant legal topics from 2000 to 2025 using the data from the Free Law Project corpus [30].
The outcomes in Table 10 reveal that evolving legal fields such as digital privacy and cybercrime experience rapid semantic evolution over time. These results then confirm the ability of DTM to identify doctrinal transitions.

4.6. Backtesting Historical Legal Shifts

In this set of experiments, we study how historical legal data affect the performance of our prediction model by comparing the resulting predictions with the evolved legal patterns in the data. These comparisons show the level of participation of our framework in the continuous jurisprudential shifts.
Table 11 reveals the efficiency of the framework in predicting the main doctrinal changes, which demonstrates a better structural and semantic predictive ability.
For further temporal experiments, Table 12 presents the results of long-term forecasting performance on extended prediction horizons.
Prediction performance gradually decreases as the forecasting horizon increases, which is expected due to growing uncertainty in long-term legal evolution. However, the results of the model indicate good performance, even for extended periods.
Historical events were selected from the Free Law Project corpus based on three criteria: (i) the event represented a documented judicial decision associated with a recognizable doctrinal development; (ii) sufficient pre-event and post-event citation/textual information was available to construct temporal observations; and (iii) the event generated observable changes in the semantic, structural, and/or causal characteristics of the relevant precedent network.
The event-level results are summarized in Table 13. The backtesting procedure used only information available up to each historical prediction point. The model generated a predicted drift score and forecast direction for the subsequent temporal window. The prediction was then compared with the documented post-event jurisprudential development.
Each event was categorized according to the magnitude of the resulting doctrinal change. Major shifts were defined as decisions establishing a substantially new doctrinal rule, materially limiting an established rule, or producing a substantial subsequent change in precedent structure and legal semantics. Moderate shifts were defined as substantial extensions, refinements, or reinterpretations of an existing doctrine without fundamentally replacing the governing rule. Minor changes were defined as narrower applications, incremental modifications, or fact-specific developments producing comparatively limited downstream changes.

Qualitative Case Study: Evolution of Digital-Privacy Jurisprudence

To provide an interpretable example of the backtesting procedure, we examined the evolution of U.S. digital-privacy jurisprudence. This topic was selected because the DTM analysis in Table 10 shows a pronounced increase in its semantic prevalence, from 0.18 during 2000–2005 to 0.47 during 2020–2025, representing the strongest temporal growth among the legal topics considered.
The evolution provides a particularly suitable test of the proposed precedent-drift framework because the relevant jurisprudence developed through a sequence of temporally connected decisions addressing increasingly pervasive digital technologies. Three landmark decisions were therefore selected as representative events: United States v. Jones (2012), Riley v. California (2014), and Carpenter v. United States (2018).
In Jones, the Supreme Court considered the government’s use of a GPS tracking device attached to a vehicle. The decision represented an important development in Fourth Amendment jurisprudence concerning technologically enabled location surveillance. The model’s simulated pre-event drift score of 0.79 indicates a substantial increase in the combined structural, semantic, and causal drift components before the documented doctrinal transition.
The subsequent Riley decision provided a second major transition. The Supreme Court held that police generally require a warrant before searching the digital contents of a mobile phone seized from an arrested individual. The Court emphasized the qualitatively different quantity and nature of information contained in modern mobile devices. The model correspondingly produced a higher simulated drift score of 0.86, indicating that the digital-privacy trajectory had become increasingly pronounced.
The strongest transition occurred around Carpenter v. United States (2018). The Supreme Court held that an individual maintains a legitimate expectation of privacy in historical cell-site location information and rejected a simple application of the traditional third-party doctrine to this category of digital location data. The simulated drift score increased to 0.94, representing the largest predicted transition in this sequence.
The temporal ordering of these observations is important. The model does not use the later judicial outcome to infer the earlier prediction. Instead, the model is trained on information available before the prediction point and generates the anticipated drift for the subsequent period. The subsequent judicial decision is then used only as an external historical reference for evaluating whether the predicted transition corresponds to an observed doctrinal development.
Overall, this case study illustrates how semantic evolution, citation-network restructuring, and estimated causal influence can jointly identify an emerging doctrinal transition.

4.7. Attention Heatmap Analysis

To better understand the internal reasoning of the TGNN algorithm, the average attention distribution across different categories of legal data is computed. Table 14 presents the temporal attention mechanism and the associated weights.
The attention distribution shown in Table 14 indicates that the model prioritizes highly authoritative legal precedents and constitutional reasoning during prediction, which aligns with real judicial reasoning processes. This indicates that our model is able to identify meaningful precedent influence patterns and structures.

4.8. Evaluation of Explainability of Citation Subgraph

In this section, a citation subgraph analysis is employed to assess the reliability of explanations generated by GNNExplainer. As shown in Table 15, different metrics are involved, such as fidelity, consistency, compactness, and agreement with human experts. The resulting ICC is 0.85 for the evaluation associated with Table 15.
The citation subgraphs generated by the proposed framework achieve high fidelity and strong agreement with legal experts. The findings indicate that influential legal relationships and judicial reasoning structures are both well captured and represented by precedent chains.

4.9. Evaluation of Statistical Significance

To validate the reliability of the obtained performance improvements, statistical significance testing was performed using paired t-tests across all cross-validation folds. Table 16 summarizes the obtained results.
The low p-values confirm that the performance improvements achieved by the proposed framework are statistically significant and not caused by random fluctuations.

4.10. Evaluation of Robustness

Robustness experiments were conducted by introducing controlled perturbations into citation structures and textual representations. The robustness of the system on noisy citation structures is tested in Table 17.
The proposed framework maintains relatively stable performance even under substantial noise levels, demonstrating strong robustness against imperfect legal data and citation inconsistencies. This robustness is due to the combination of structural, semantic, and causal components into one framework.
To further assess the practical robustness of the proposed framework, we set in Table 18 progressively more challenging conditions involving input noise, missing citation relationships, sparse historical evidence, temporal shift, jurisdictional shift, semantic shift, and changes in citation-network structure, while keeping the remaining experimental settings unchanged.
Overall, the results in Table 18 indicate a gradual rather than abrupt degradation as perturbation severity increases, with the largest reductions occurring under sparse historical evidence, substantial citation loss, long-term temporal shift, and emerging semantic topics.

4.11. Evaluation of Computational Efficiency

A GPU-based training environment was used to assess the computational efficiency of the different models against our framework. The findings are shown in Table 19. The reported 15.8 h training time and 14.9 GB GPU requirement are measurements for the processed experimental representation, not for simultaneously loading and training over the entire raw corpus.
Despite the addition of TGNN, DTM, causal inference, and explainability, which makes the introduced model computationally higher, the model outperforms other predictive models in terms of causal reasoning, interpretability, and accuracy.
The raw legal resources were not processed in their entirety as a single GPU-resident corpus. Instead, a reproducible preprocessing pipeline was applied. First, a fixed dataset snapshot was obtained. Second, documents outside the predefined temporal interval were removed. Third, legal citations were normalized and mapped to case identifiers or precedent-passage identifiers. Fourth, duplicate and unresolved citation records were removed. Fifth, temporal snapshots were constructed. Finally, nodes with insufficient graph connectivity were filtered before graph learning.
For each temporal snapshot, the resulting graph contains only the cases and citation relationships available up to that point. This representation is subsequently used to train the temporal graph models. Textual representations are generated separately and associated with the graph nodes rather than repeatedly encoding the complete raw corpus during every training epoch.
The reported GPU memory does not correspond to loading the complete raw legal corpus into GPU memory. Raw documents and citation records are stored on disk, while only the processed graph mini-batches and corresponding node representations required for the current training step are transferred to the GPU. Therefore, GPU memory consumption depends primarily on the sampled subgraph size, feature dimensionality, batch size, and model architecture rather than directly on the total disk size of the source corpus.

4.12. Evaluation of Cross-Jurisdiction Generalization

Table 20 proposes a set of cross-jurisdiction tests to assess the accuracy and drift error of our model across different legal environments.
The proposed framework generalizes effectively across different judicial systems, although performance slightly decreases in highly heterogeneous legal environments due to variations in citation structures, procedural traditions, and doctrinal organization.
The main causes of prediction errors detected during experimentation are enumerated in Table 21.
Most of these errors stem either from fragmented historical citation structures or from obscure prior relationships. This demonstrates the considerable complexity of modeling legal reasoning patterns.

4.13. Evaluation of Human Experts

Table 22 shows human expert evaluation of the generated explanations. Legal experts rated the explanations highly in terms of legal consistency and practical usefulness, indicating that the proposed framework produces explanations aligned with judicial reasoning processes. The number of participating experts was N = 8. The experts were asked to independently assess the relevance and practical usefulness of the explanations generated by the proposed framework. A five-point Likert scale was used, ranging from 1 (very poor/strongly disagree) to 5 (excellent/strongly agree). The experts evaluated the model explanations independently and were not provided with the ratings of other participants. The resulting ICC was 0.83 for the evaluation associated with Table 23, which indicates a strong inter-rater consistency.
The expert evaluation is intended to provide external human validation of the interpretability and practical relevance of the generated explanations, rather than to establish definitive legal validity or causal correctness.

4.14. Component Contribution Analysis

The results in Table 23 indicate a progressive improvement as complementary information sources are incorporated. TGNN alone provides the structural and temporal baseline, while adding DTM improves the representation of semantic evolution. Adding causal inference further improves predictive performance and substantially reduces causal estimation error. The combination of TGNN, DTM, and causal inference produces further improvement, while the complete framework provides the best overall performance after incorporating alignment, forecasting, and explainability. This pattern is consistent with the framework’s design, where TGNN captures evolving citation structure, DTM models semantic drift, and causal inference distinguishes genuine precedent influence from correlation. Notably, GNNExplainer is not expected to produce a large change in predictive accuracy, because its primary role is interpretability rather than prediction.
The failure-case analysis connects the observed failure cases to the limitations of the proposed components. The achieved analysis identifies four major error sources: ambiguous precedents (31.4%), sparse citation history (24.6%), semantic ambiguity (21.8%), and temporal inconsistency (14.2%). This analysis demonstrates that the proposed framework should not be interpreted as uniformly effective for every legal prediction scenario. Sparse citation networks can limit TGNN-based structural reasoning, ambiguous language can reduce the reliability of DTM-derived semantic signals, and abrupt or inconsistent historical changes can challenge temporal extrapolation.

5. Discussion

The series of cross-validated experiments confirms the performance of the proposed predictive jurisprudence system. In general, this system was able to consider the structural and causal dimensions better than standard models due to the following characteristics:
-
Time-based modeling tools are in general effective in tracking legal evolution. Indeed, due to their incapacity in managing the dynamic behavior of case law, static paradigms, such as latent discrimination analysis and generative neural networks, fail in obtaining an accurate variance ratio. Nonetheless, Temporal GNN successfully identifies evolving citation patterns, then generates better predictions.
-
The use of dynamic topic modeling in our platform allows for better identification of semantic shifts in legal doctrines. The tests confirm that citation networks are characterized by a timeline indicating that evolution in legal language generally occurs before structural evolution. The latter fact transforms the semantic deviation into an early indicator of legal evolution.
-
The accuracy of the obtained causal evaluation confirms that causal reasoning considerably enhances the predictions and their explainability. In legal contexts, this is relevant since the decisions must be justified based on legitimate case law.
-
The use of GNNExplainer allows a better capture of the most important precedent links guiding the prediction process. In our evaluations, this accuracy of interpretation is validated by human experts.
However, despite the good results on the two datasets used, our framework has slightly lower performance on data from the LePaRD dataset, likely due to its focus on semantic retrieval rather than citation structure. Overall, the findings of the study confirm the usefulness of predictive jurisprudence in explaining legal change.
Moreover, despite the robustness and cross-jurisdiction experiments, several limitations remain. First, the controlled perturbations used in the robustness experiments do not capture every possible form of data degradation, including systematic missing citations, changes in legal reporting practices, or sudden changes in doctrinal terminology. Second, the performance of the framework may decrease under a substantial domain or jurisdictional shift, particularly when citation structures and legal conventions differ considerably from those represented in the training data. Third, sparse citation histories and semantically ambiguous precedents remain challenging cases, as reflected by the error analysis in Table 19. Finally, predictions generated by the framework should be regarded as decision-support information rather than substitutes for professional legal judgment. Future deployment-oriented studies should therefore evaluate the framework using continuously updated legal streams, additional jurisdictions, larger distribution-shift scenarios, and prospective human-in-the-loop evaluation.

6. Conclusions

This study proposed a novel AI-based framework for predictive jurisprudence to forecast and explain precedent drift in dynamic legal environments. This framework combines temporal graph neural networks and causal inference with dynamic topic modeling to offer an interpretable solution for analyzing legal evolution. The findings of the study demonstrate that the proposed solution outperformed other algorithms in terms of identifying causal effects, estimating law evolution, and prediction accuracy. On the other hand, advances in artificial intelligence interpretation techniques improve accuracy in legal inference predictions. This progress can be leveraged in numerous applicable fields, such as conducting legal comparisons between countries, utilizing the power of large linguistic models to enhance the semantic understanding of our model, and simulating the outcomes of planned legal reforms.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/electronics15174051/s1.

Author Contributions

Conceptualization, S.M. and M.A.; methodology, S.M.; software, S.M.; validation, M.A.; formal analysis, S.M.; investigation, M.A.; resources, S.M.; data curation, S.M. and M.A.; writing—original draft preparation, S.M.; writing—review and editing, S.M.; visualization, S.M. and M.A.; supervision, S.M. and M.A.; project administration, S.M.; funding acquisition, S.M. All authors have read and agreed to the published version of the manuscript.

Funding

The authors extend their appreciation to the Deanship of Research and Graduate Studies at the University of Tabuk for funding this work through Research No. 2024-S-0273.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets used, Free Law Project [30] and LePaRD [31], are publicly available from the indicated references. The source codes used to preprocess data, implement the problem, develop the proposed framework and algorithms for comparisons, run the evaluation experiments, and produce the reported tables and figures are all available at: https://doi.org/10.6084/m9.figshare.33406219. Codes for preprocessing data, implementing the proposed predictive jurisprudence framework, developing the TGNN, DTM, causal inference, and explainable AI, benchmark algorithms and metrics for evaluation are all publicly available as Supplementary Material.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Corso, G.; Stark, H.; Jegelka, S.; Jaakkola, T.; Barzilay, R. Graph neural networks. Nat. Rev. Methods Primers 2024, 4, 17. [Google Scholar] [CrossRef] [Scilit]
  2. Krook, J.; Winter, P.; Downer, J.; Blockx, J. A systematic literature review of artificial intelligence (AI) transparency laws in the European Union (EU) and United Kingdom (UK): A socio-legal approach to AI transparency governance. AI Ethics 2025, 5, 4069–4090. [Google Scholar] [CrossRef] [Scilit]
  3. Ying, Z.; Bourgeois, D.; You, J.; Zitnik, M.; Leskovec, J. Gnnexplainer: Generating explanations for graph neural networks. Adv. Neural Inf. Process. Syst. 2019, 32, 9240–9251. [Google Scholar] [PubMed]
  4. Zhang, T.; Fang, J.; Chen, X.; Yang, Z. Enhanced Temporal Graph Neural Network for Predicting Future Citations on Academic Graphs: A Dual Clustering-Driven and Centrality-Guided Approach. Knowl.-Based Syst. 2025, 329, 114282. [Google Scholar] [CrossRef] [Scilit]
  5. Aldawsari, M. TempReasoner: Neural temporal graph networks for event timeline construction. Sci. Rep. 2026, 16, 4985. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Li, H.; Liang, H.; Hu, Y.; Liu, X. Technology convergence prediction based on temporal heterogeneous graph neural networks. Inf. Process. Manag. 2025, 62, 104034. [Google Scholar] [CrossRef] [Scilit]
  7. Li, Y.; Zhang, X.; Cui, Y.; Ma, S. Hyperbolic Graph Neural Network for Temporal Knowledge Graph Completion. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024); ELRA and ICCL: Torino, Italy, 2024; pp. 8474–8486. [Google Scholar]
  8. Tang, Y.; Qiu, R.; Liu, Y.; Li, X.; Huang, Z. CaseGNN: Graph Neural Networks for Legal Case Retrieval with Text-Attributed Graphs. In Advances in Information Retrieval: 46th European Conference on Information Retrieval, ECIR 2024, Glasgow, UK, 24–28 March 2024; Proceedings, Part II; Springer: Cham, Switzerland, 2024; pp. 80–95. [Google Scholar] [CrossRef] [Scilit]
  9. Yuan, L.; Zhang, X.; Ke, Y.; Lu, Z.; Li, X.; Liu, C. Temporal Community Detection and Analysis with Network Embeddings. Mathematics 2025, 13, 698. [Google Scholar] [CrossRef] [Scilit]
  10. Ahmed, M.J.; Mozo, A.; Karamchandani, A. A survey on graph neural networks, machine learning and deep learning techniques for time series applications in industry. PeerJ Comput. Sci. 2025, 11, e3097. [Google Scholar] [CrossRef] [Scilit]
  11. Liang, G.; Tiwari, P.; Byttner, S.; Alonso-Fernandez, F. Dynamic Causal Explanation Based Diffusion-Variational Graph Neural Network for Spatiotemporal Forecasting. IEEE Trans. Neural Netw. Learn. Syst. 2025, 36, 9524–9537. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Srivastav, S.; Shruti, K.M.; Agarwal, D.; Soni, P.; Singh, R. Intelligent justice: AI-driven forensics and legal process for criminal justice reforms. Int. J. Law Crime Justice 2026, 84, 100832. [Google Scholar] [CrossRef] [Scilit]
  13. Wang, Y.; Alawad, M.A.; Alfilh, R.H.C.; Singh, N.S.S. Temporal influence maximization via continuous-time graph neural networks and deep reinforcement learning. Sci. Rep. 2026, 16, 8987. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Zhu, Y.; Liu, Q. Hybrid graph attention network-LSTM models for causal-aware supply chain forecasting. J. Intell. Manuf. 2026, 19. [Google Scholar] [CrossRef] [Scilit]
  15. Feng, G.; Qin, Y.; Huang, R.; Chen, Y. Criminal Action Graph: A semantic representation model of judgement documents for legal charge prediction. Inf. Process. Manag. 2023, 60, 103421. [Google Scholar] [CrossRef] [Scilit]
  16. Zhang, H.; Zhang, T.; Yang, Z.; Wang, W.; Ju, M.; Wen, D.; Cao, B. Temporal Katz Centrality Estimation with Temporal Graph Neural Networks. In Advanced Data Mining and Applications. ADMA 2025; Yoshikawa, M., Meng, X., Cao, Y., Xiao, C., Chen, W., Wang, Y., Eds.; Lecture Notes in Computer Science; Springer: Singapore, 2026; Volume 16200. [Google Scholar] [CrossRef] [Scilit]
  17. Wang, X.; Jiang, H.; Dong, Y.; Mu, M. Spatial-channel collaborative multi-scale graph interaction deep transfer learning for unsupervised rotating machinery fault diagnosis. Eng. Appl. Artif. Intell. 2026, 176, 114691. [Google Scholar] [CrossRef] [Scilit]
  18. He, H.; Sun, C.; Huang, Y.; Huang, G.; Hao, X. Spmixnet: Spatial-channel collaborative modeling for enhanced small-object segmentation in LiDAR point clouds. Vis. Comput. 2026, 42, 464. [Google Scholar] [CrossRef] [Scilit]
  19. Hassanat, A.B.; Alqaralleh, M.K.; Tarawneh, A.S.; Almohammadi, K.; Alamri, M.; Alzahrani, A.; Altarawneh, G.A.; Alhalaseh, R. A Novel Outlier-Robust Accuracy Measure for Machine Learning Regression Using a Non-Convex Distance Metric. Mathematics 2024, 12, 3623. [Google Scholar] [CrossRef] [Scilit]
  20. Liu, J.; Jiang, F.; Tashiro, S.; Chen, S.; Tanaka, M. A physics-informed and data-driven framework for robotic welding in manufacturing. Nat. Commun. 2025, 16, 4807. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Zhao, H.; Wang, B.; Fu, Y.; Zhou, M.; Li, N.; Gao, Z. Fixed-time adaptive smooth control with relaxed performance constraints for a canard rotor/wing UAV subject to aerodynamic interferences and actuator faults. Aerosp. Sci. Technol. 2026, 178, 112959. [Google Scholar] [CrossRef] [Scilit]
  22. Job, S.; Tao, X.; Cai, T.; Xie, H.; Li, L.; Li, Q.; Yong, J. Exploring Causal Learning Through Graph Neural Networks: An In-Depth Review. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 2025, 15, e70024. [Google Scholar] [CrossRef] [Scilit]
  23. Li, Y.; Zhu, J.; Luo, X. BERT-TSR: A BERT-based two-stage ranking model for legal case retrieval. Artif. Intell. Law 2026, 1–33. [Google Scholar] [CrossRef] [Scilit]
  24. Wang, Z.; Yu, J. ALTER: A lightweight topic-aware representation legal case retrieval system. Artif. Intell. Law 2026, 1–30. [Google Scholar] [CrossRef] [Scilit]
  25. Harde, T.; Jain, D.; Patelia, K.; Mathur, S. AI-driven legal argument strength analyzer & counter-argument generator. Artif. Intell. Law 2026, 1–42. [Google Scholar] [CrossRef] [Scilit]
  26. Tokala, Y.S.S.S. LexLabyrinth: Navigating Structured Planning, Faithful Grounding, Cross-Jurisdictional Transfer, and Temporal Adaptation in Legal Language Models. Ph.D. Thesis, Technische Universität München, München, Germany, 2026. [Google Scholar]
  27. Sun, C. Explainable Artificial Intelligence for Time Series Modelling and Causal Inference. Ph.D. Thesis, School of Aerospace, Transport and Manufacturing Cranfield University, Bedfordshire, UK, 2022. [Google Scholar]
  28. Pasquale, F. The Non-Delegable Duty to Think: Judicial Legitimacy and the Limits of Generative AI. Cornell Leg. Stud. 2026, 26. [Google Scholar] [CrossRef] [Scilit]
  29. Prasetya, C.E.; Sekti, B.A. AI-Powered Legal Research and Analysis. In AI Transformations in Global Legal Systems; IGI Global Scientific Publishing: Hershey, PA, USA, 2026; pp. 1–34. [Google Scholar]
  30. CourtListener Data. Available online: https://free.law (accessed on 20 August 2026).
  31. Mahari, R.; Stammbach, D.; Ash, E.; Pentland, A. LePaRD: A Large-Scale Dataset of Judicial Citations to Precedent. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers); Association for Computational Linguistics: Stroudsburg, PA, USA, 2024; pp. 9863–9877. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Algorithm of the introduced predictive jurisprudence system.
Figure 1. Algorithm of the introduced predictive jurisprudence system.
Electronics 15 04051 g001
Figure 2. Architecture of the proposed AI-driven predictive jurisprudence platform.
Figure 2. Architecture of the proposed AI-driven predictive jurisprudence platform.
Electronics 15 04051 g002
Table 1. Investigation of recent state-of-the-art methods.
Table 1. Investigation of recent state-of-the-art methods.
PaperProblemMethodologyComplexityDataset(s)ResultsProsConsComments
(Zhang et al., 2025) [4]Citation predictionHeterogeneous TGNN + clusteringO(E·d)Academic graphsImproved accuracy vs. GNNCaptures global + local structureNo causal modelingStrong temporal modeling but domain-limited
(Aldawsari et al., 2026) [5]Event timeline constructionTemporal GNN + attentionO(E·d)Multi-domain eventsAccuracy of 94.3% Builds high temporal reasoning.
Models causal order of events.
No semantic topic modelingFocuses on events, not legal reasoning
(Li et al., 2025) [6]Technology evolutionTemporal heterogeneous GNNO(E·d)Patent datasetsSOTA predictionCombines structure or semanticsNo explainability or causalityClosest to our hybrid idea
(Li et al., 2024) [7]Knowledge graph completionHyperbolic TGNNO(E·d)Temporal KG benchmarksSOTA performanceModels complex relationsNo legal domain, no causalityStrong representation learning
(Tang et al., 2024) [8]Legal case retrievalGraph + text (CaseGNN)O(E·d)COLIEE datasetsOutperforms baselinesUses graph-based structure and text for legal reasoningStatic (no temporal modeling)Legal domain but not predictive
(Yuan et al., 2025) [9]Community detectionTemporal GNN + attentionO(E·d)Temporal networksImproved accuracyCaptures dynamicsNot domain-specificGeneric TGNN model
(Ahmed et al., 2025) [10]GNN surveyComprehensive reviewN/AMultipleN/ABroad coverageNo unified frameworkHighlights open challenges
(Liang et al., 2025) [11]Spatiotemporal forecasting with interpretability and causal understanding in dynamic graph environments.Dynamic causal explanation-based diffusion variational GNN (DCE-DVGNN) High computational complexity due to graph diffusion operations.
Complexity grows with graph size, time steps, and latent-variable optimization.
Spatiotemporal traffic/sensor datasets (METR-LA and PEMS).Improved forecasting accuracy over baseline ST-GNN methods while causal explanations demonstrated better robustness and explainability.Combines prediction and explainability.
Handles dynamic spatial-temporal dependencies.
Introduces causal interpretability.
High training cost. Complex architecture.
Explainability quality may depend on causal assumptions.
Reduced scalability for very large dynamic graphs.
Highly relevant for research combining XAI and temporal GNNs.
Strong contribution for interpretable forecasting systems and causal graph learning.
(Srivastav et al., 2026) [12] Modernization of criminal justice processes using AI-driven forensic and legal analytics.Combines machine learning, NLP, and legal analytics concepts.Moderate complexity overall. Complexity depends on underlying AI modules used in legal analytics and forensic processing.Legal records from criminal justice and forensic evidence repositories.Improved case processing and forensic analysis accuracy in justice systems.Discusses ethical and legal implications.
Connects AI with justice reform.
Limited experimental validation.
Bias and privacy concerns.
Legal explainability challenges remain.
Useful as a high-level reference for AI in legal systems. More conceptual than technically deep compared with GNN/XAI papers.
(Wang et al., 2026) [13]Influence maximization in evolving temporal networks.Combines Continuous-Time Graph Neural Networks (CT-GNNs) with Deep Reinforcement Learning (DRL) Very high complexity due to continuous-time dynamic graph processing, reinforcement learning optimization, and sequential decision-making.Temporal social network dataset, and diffusion benchmark datasets.Superior influence spread and adaptive decision-making compared to classical influence maximization methods.Captures temporal evolution accurately
Integrates RL with GNNs
Harder interpretability. Computationally expensive.
Scalability concerns on massive graphs.
Relevant to evolving legal and social network analysis.
(Zhu et al., 2026) [14]Supply-chain forecasting with causal-aware dependency modeling.Hybrid Graph Attention Networks and LSTM architecture.Moderate-to-high complexity because of hybrid deep architecture involving attention Supply-chain datasets, logistics/industrial forecasting datasets. Better forecasting accuracy and causal-awareness compared to traditional forecasting and standalone DL approaches.Captures spatial and temporal dependencies.
Attention improves interpretability.
Practical industrial relevance.
Requires large training data.
Model tuning complexity.
Limited causal certainty despite “causal-aware” design.
Strong industrial application of hybrid GNN-LSTM. Useful reference for causal-aware temporal forecasting architectures.
(Feng et al., 2023) [15]Legal charge prediction from judicial documents while preserving semantic relationships between criminal actions. Suggested Criminal Action Graph (CAG) representing legal facts as semantic graphs combined with deep learning/NLP.Moderate-to-high complexity due to graph construction and semantic extraction.Chinese judicial judgment datasets and criminal case documents.Better legal charge prediction accuracy compared with traditional text-based legal NLP methods.Captures semantic legal relations.
Better contextual understanding.
Shows the relevance of temporal structure in law.
Limited transferability across legal systems.Useful reference for AI in legal analytics and graph-based legal reasoning.
(Zhang et al., 2026) [16]Estimation of temporal centrality in evolving dynamic networks.Temporal Graph Neural Networks (TGNNs) to estimate Temporal Katz Centrality efficiently in dynamic graphs.High complexity due to temporal graph processing and recursive centrality estimation.Dynamic graph benchmarks and temporal network datasets.Accurate approximation of temporal Katz centrality with better scalability than classical computation methods.Handles temporal evolution.
Suitable for large-scale dynamic networks.
Computationally intensive training. Limited interpretability. Performance sensitive to temporal graph quality.Relevant for temporal network analysis and evolving graph intelligence systems.
Proposed ModelPredictive jurisprudenceTGNN + DTM + causal + XAIO(E·d)Free Law Project, LePaRDSOTA across tasksUnified, interpretable, causalHigh complexityFirst holistic framework
Table 2. Parameters of the suggested system.
Table 2. Parameters of the suggested system.
ParameterValue
TGNN layers3
Hidden dimension128
Attention heads4
Learning rate0.001
Batch size64
Epochs100
Topic number (DTM)50
Drift weights (α, β, γ)(0.4, 0.3, 0.3)
Dropout0.3
Table 3. Hyperparameters of the baseline models used.
Table 3. Hyperparameters of the baseline models used.
ModelParameterValue
GCNLayers2
Hidden dim128
LR0.01
Dropout0.5
GATLayers2
Heads8
Hidden dim128
LR0.005
TGNMemory dim128
Time encoding Sinusoidal
LR0.001
DynamicTriadEmbedding dim128
Window size5
LDA + SVMTopics50
SVM kernelRBF
C1.0
BERTBERT Modelbase (768 dim)
LR2 × 10−5
Epochs5
CausalForestTrees500
Max depth10
Table 4. Binary precedent-drift classification performance on FLP and LePaRD.
Table 4. Binary precedent-drift classification performance on FLP and LePaRD.
Accuracy (%)F1-ScorePrecisionRecall
ModelFLPLePaRDFLPLePaRDFLPLePaRDFLPLePaRD
GCN78.2 ± 1.276.5 ± 1.40.76 ± 0.010.74 ± 0.020.75 ± 0.010.73 ± 0.020.76 ± 0.010.74 ± 0.02
GAT80.5 ± 1.178.9 ± 1.30.79 ± 0.010.77 ± 0.010.78 ± 0.010.76 ± 0.020.79 ± 0.010.78 ± 0.01
TGN84.7 ± 0.982.6 ± 1.00.83 ± 0.010.81 ± 0.010.82 ± 0.010.80 ± 0.010.83 ± 0.010.82 ± 0.01
BERT82.3 ± 1.083.5 ± 0.80.81 ± 0.010.82 ± 0.010.80 ± 0.010.82 ± 0.010.81 ± 0.010.83 ± 0.01
LDA + SVM75.1 ± 1.574.3 ± 1.60.73 ± 0.020.72 ± 0.020.72 ± 0.020.71 ± 0.020.73 ± 0.020.72 ± 0.02
CaseGNN-adapted83.5 ± 0.981.3 ± 1.20.76 ± 0.030.78 ± 0.010.81 ± 0.010.77 ± 0.020.82 ± 0.010.80 ± 0.02
Proposed89.6 ± 0.787.9 ± 0.80.88 ± 0.010.86 ± 0.010.88 ± 0.010.85 ± 0.010.88 ± 0.010.87 ± 0.01
Table 5. ROC-AUC for citation-link prediction, precedent-drift classification, and causal-influence prediction.
Table 5. ROC-AUC for citation-link prediction, precedent-drift classification, and causal-influence prediction.
ModelCitation Prediction AUCDrift Prediction AUCCausal Influence AUCMean ROC-AUC
GCN0.810.770.730.77
GAT0.840.800.760.80
TGN0.880.850.810.85
BERT0.860.790.750.80
CaseGNN-adapted0.890.890.830.87
Proposed0.930.910.890.91
Table 6. External-evidence-based evaluation of future doctrinal drift.
Table 6. External-evidence-based evaluation of future doctrinal drift.
ModelFLP MSELePaRD MSE
TGN0.084 ± 0.0040.089 ± 0.005
DynamicTriad0.091 ± 0.0060.095 ± 0.006
LDA-based0.110 ± 0.0070.115 ± 0.008
Proposed0.052 ± 0.0030.058 ± 0.004
Table 7. Observational causal-effect estimation and external outcome validation.
Table 7. Observational causal-effect estimation and external outcome validation.
ModelFLP ErrorLePaRD Error
CausalForest0.072 ± 0.0050.075 ± 0.006
TGN (no causal)0.095 ± 0.0060.099 ± 0.007
Proposed0.041 ± 0.0030.045 ± 0.004
Table 8. Relative contribution of structural, semantic, and causal components to the continuous precedent-drift score.
Table 8. Relative contribution of structural, semantic, and causal components to the continuous precedent-drift score.
Drift ComponentFLP Contribution (%)LePaRD Contribution (%)
Structural Drift41.539.8
Semantic Drift31.234.5
Causal Drift27.325.7
Table 9. Temporal drift evolution analysis.
Table 9. Temporal drift evolution analysis.
PeriodStructural DriftSemantic DriftCausal DriftOverall Drift Score
2000–20050.210.180.140.18
2005–20100.290.240.190.23
2010–20150.370.310.250.30
2015–20200.450.390.340.41
2020–20250.520.470.410.46
Table 10. Temporal topic evolution analysis.
Table 10. Temporal topic evolution analysis.
Legal Topic2000–20052005–20102010–20152015–20202020–2025
Digital Privacy0.050.090.180.310.44
Cybercrime0.040.080.160.280.39
Constitutional Rights0.260.280.310.340.36
Corporate Liability0.180.210.250.270.29
Environmental Law0.090.110.170.240.33
Table 11. Backtesting accuracy.
Table 11. Backtesting accuracy.
Event TypeFLP Accuracy (%)
(Mean ± SD)
FLP
95% CI
LePaRD Accuracy (%)
(Mean ± SD)
LePaRD
95% CI
Major shifts91.2 ± 0.8[90.5, 91.9]89.5 ± 1.0[88.6, 90.4]
Moderate shifts87.5 ± 1.0[86.6, 88.4]85.9 ± 1.2[84.8, 87.0]
Minor changes82.8 ± 1.3[81.6, 84.0]81.4 ± 1.4[80.1, 82.7]
Table 12. Long-term forecasting performance.
Table 12. Long-term forecasting performance.
Forecast HorizonFLP Accuracy (%)
(Mean ± SD)
LePaRD Accuracy (%)
(Mean ± SD)
1 Year89.687.9
3 Years86.484.8
5 Years82.780.9
10 Years75.873.2
Table 13. Representative historical jurisprudential events used for backtesting.
Table 13. Representative historical jurisprudential events used for backtesting.
No.Historical EventYearLegal TopicDoctrinal DevelopmentShift CategoryPredicted DriftEvent Detected
1United States v. Jones2012Digital privacyGPS tracking recognized as a Fourth Amendment searchMajor0.79Yes
2Riley v. California2014Digital privacyWarrant generally required for search of digital contents of a seized mobile phoneMajor0.86Yes
3Obergefell v. Hodges2015Constitutional rightsRecognition of constitutional right to same-sex marriageMajor0.91Yes
4Carpenter v. United States2018Digital privacyFourth Amendment protection extended to historical cell-site location informationMajor0.94Yes
5Bostock v. Clayton County2020Constitutional rightsTitle VII interpreted to prohibit discrimination based on sexual orientation or gender identityMajor0.88Yes
6Digital-search warrant cases following Riley2015–2017Digital privacyIncremental clarification of digital-search doctrineModerate0.71Yes
7Post-Carpenter lower-court applications2019–2021Digital privacyExtension/refinement of privacy principles to emerging digital recordsModerate0.69Yes
8Incremental environmental-law precedent developments2018–2020Environmental lawNarrow doctrinal refinementsMinor0.48Yes
Table 14. Analysis of attention weights of legal features.
Table 14. Analysis of attention weights of legal features.
Legal Feature CategoryAverage Attention Weight
Supreme Court precedents0.34
Constitutional references0.27
Statutory interpretation0.18
Procedural citations0.11
Secondary legal doctrines0.10
Table 15. Citation subgraph explainability evaluation.
Table 15. Citation subgraph explainability evaluation.
MetricFLP ± SDFLP 95% CILePaRD ± SDLePaRD 95% CI
Subgraph Fidelity0.89 ± 0.02[0.87, 0.91]0.87 ± 0.01[0.85, 0.89]
Explanation Compactness0.81 ± 0.03[0.78, 0.84]0.79 ± 0.03[0.76, 0.82]
Citation Relevance0.92 ± 0.02[0.90, 0.94]0.90 ± 0.01[0.88, 0.92]
Legal Consistency Score0.88 ± 0.01[0.86, 0.90]0.86 ± 0.02[0.83, 0.89]
Human Expert Agreement0.85 ± 0.03[0.82, 0.88]0.83 ± 0.02[0.80, 0.86]
Table 16. Statistical significance analysis.
Table 16. Statistical significance analysis.
Comparisont-Statisticp-ValueSignificantMean Difference95% CIEffect Size
Proposed vs. GCN7.42<0.001Yes8.4%[6.0%, 10.8%]1.45
Proposed vs. GAT6.85<0.001Yes7.1%[4.9%, 9.3%]1.32
Proposed vs. TGN5.91<0.001Yes5.2%[3.1%, 7.3%]1.18
Proposed vs. BERT6.27<0.001Yes6.4%[4.2%, 8.6%]1.27
Table 17. Robustness under noisy legal data.
Table 17. Robustness under noisy legal data.
Noise LevelFLP Accuracy (%)95% CILePaRD Accuracy (%)95% CI
0%89.6[89.0, 90.2]87.9[87.2, 88.6]
5%88.2[87.5, 88.9]86.7[86.0, 87.4]
10%86.9[86.2, 87.6]85.1[84.3, 85.9]
20%83.8[83.0, 84.6]81.9[81.0, 82.8]
30%79.6[79.3, 81.2]77.5[75.4, 78.3]
Table 18. Robustness of the proposed framework under data and distribution perturbations.
Table 18. Robustness of the proposed framework under data and distribution perturbations.
Robustness ConditionLevelAccuracy (%)F1-Score (%)ROC-AUCDrift MSECausal Error
Clean data0%89.6 ± 0.789.5 ± 0.70.930.052 ± 0.0030.041 ± 0.003
Input noise5%88.2 ± 0.888.1 ± 0.80.920.056 ± 0.0030.043 ± 0.003
10%86.9 ± 0.986.7 ± 0.90.900.061 ± 0.0040.046 ± 0.004
20%83.8 ± 1.183.5 ± 1.10.870.071 ± 0.0050.052 ± 0.005
Missing citations10%88.1 ± 0.887.9 ± 0.80.910.059 ± 0.0040.045 ± 0.004
20%85.9 ± 1.085.6 ± 1.00.890.068 ± 0.0050.049 ± 0.004
30%82.7 ± 1.282.3 ± 1.20.850.079 ± 0.0060.056 ± 0.005
Sparse history75%88.0 ± 0.887.8 ± 0.80.910.058 ± 0.0040.044 ± 0.003
50%85.4 ± 1.085.1 ± 1.00.880.067 ± 0.0050.049 ± 0.004
25%81.6 ± 1.381.2 ± 1.30.840.081 ± 0.0060.057 ± 0.005
Temporal shift+1 year88.7 ± 0.888.5 ± 0.80.920.057 ± 0.0040.043 ± 0.003
+3 years86.4 ± 1.086.1 ± 1.00.890.065 ± 0.0050.048 ± 0.004
+5 years83.9 ± 1.283.6 ± 1.20.860.074 ± 0.0060.054 ± 0.005
Jurisdiction shiftCross-jurisdiction84.8 ± 1.184.5 ± 1.10.870.072 ± 0.0050.055 ± 0.005
Semantic shiftEmerging topics82.9 ± 1.282.5 ± 1.20.850.078 ± 0.0060.058 ± 0.005
Citation-structure shift−20% edges84.6 ± 1.184.2 ± 1.10.870.073 ± 0.0050.054 ± 0.005
Table 19. Computational efficiency comparison.
Table 19. Computational efficiency comparison.
ModelTraining Time (h)GPU Memory (GB)Inference Time (ms/Sample)
GCN4.16.211
GAT6.58.117
TGN11.312.425
Proposed Framework15.814.931
Table 20. Cross-jurisdiction generalization analysis.
Table 20. Cross-jurisdiction generalization analysis.
JurisdictionAccuracy (%) ± SD95% CIDrift Prediction Error ± SD95% CI
Federal Courts89.6 ± 0.7[88.9, 90.3]0.052 ± 0.003[0.049, 0.055]
State Courts86.9 ± 0.9[86.0, 87.8]0.061 ± 0.004[0.057, 0.065]
International Legal Cases83.7 ± 1.1[82.6, 84.8]0.069 ± 0.005[0.064, 0.074]
Administrative Courts84.8 ± 1.0[83.8, 85.8]0.064 ± 0.004[0.060, 0.068]
Table 21. Error categorization analysis.
Table 21. Error categorization analysis.
Error TypePercentage (%)
Ambiguous precedents31.4
Sparse citation history24.6
Semantic ambiguity21.8
Temporal inconsistency14.2
Annotation noise8.0
Table 22. Human expert scores for explainability.
Table 22. Human expert scores for explainability.
CriterionJudges Score ± SDLegal Experts ± SD
Explanation clarity4.5 ± 0.54.7 ± 0.4
Legal consistency4.4 ± 0.64.8 ± 0.3
Trustworthiness4.3 ± 0.64.6 ± 0.5
Practical usefulness4.6 ± 0.54.7 ± 0.4
Table 23. Component analysis of the proposed framework.
Table 23. Component analysis of the proposed framework.
Model ConfigurationAccuracy (%)Precision (%)Recall (%)F1-Score (%)ROC-AUCDrift MSECausal Error
TGNN only84.9 ± 1.183.8 ± 1.285.7 ±1.184.7 ± 1.10.870.084 ± 0.0060.061 ± 0.005
TGNN + DTM86.9 ± 0.986.1 ± 1.087.6 ± 0.986.8 ± 0.90.890.069 ± 0.0050.088 ± 0.006
TGNN + Causal Inference87.8 ± 0.887.0 ± 0.988.5 ± 0.887.7 ± 0.80.900.063 ± 0.0040.043 ± 0.003
TGNN + DTM + Causal inference89.1 ± 0.788.5 ± 0.889.7 ± 0.789.0 ± 0.70.920.055 ± 0.0030.042 ± 0.003
Complete framework (TGNN + DTM + Causal inference + GNNExplainer)89.6 ± 0.788.9 ± 0.890.2 ± 0.789.5 ± 0.70.930.052 ± 0.0030.041 ± 0.003
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

Mnasri, S.; Alghamdi, M. Explainable Predictive Jurisprudence for Anticipating Legal Doctrine Evolution in Dynamic Judicial Systems. Electronics 2026, 15, 4051. https://doi.org/10.3390/electronics15174051

AMA Style

Mnasri S, Alghamdi M. Explainable Predictive Jurisprudence for Anticipating Legal Doctrine Evolution in Dynamic Judicial Systems. Electronics. 2026; 15(17):4051. https://doi.org/10.3390/electronics15174051

Chicago/Turabian Style

Mnasri, Sami, and Mansoor Alghamdi. 2026. "Explainable Predictive Jurisprudence for Anticipating Legal Doctrine Evolution in Dynamic Judicial Systems" Electronics 15, no. 17: 4051. https://doi.org/10.3390/electronics15174051

APA Style

Mnasri, S., & Alghamdi, M. (2026). Explainable Predictive Jurisprudence for Anticipating Legal Doctrine Evolution in Dynamic Judicial Systems. Electronics, 15(17), 4051. https://doi.org/10.3390/electronics15174051

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