% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
]{report}
\usepackage{amsmath,amssymb}
\usepackage{iftex}
\ifPDFTeX
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  \usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
  \usepackage{unicode-math} % this also loads fontspec
  \defaultfontfeatures{Scale=MatchLowercase}
  \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
\usepackage{lmodern}
\ifPDFTeX\else
  % xetex/luatex font selection
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
  \usepackage[]{microtype}
  \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
  \IfFileExists{parskip.sty}{%
    \usepackage{parskip}
  }{% else
    \setlength{\parindent}{0pt}
    \setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
  \KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\usepackage[margin=2.0cm,a4paper]{geometry}
\usepackage{longtable,booktabs,array}
\usepackage{calc} % for calculating minipage widths
% Correct order of tables after \paragraph or \subparagraph
\usepackage{etoolbox}
\makeatletter
\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
\makeatother
% Allow footnotes in longtable head/foot
\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
\makesavenoteenv{longtable}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\usepackage{titlesec}
\usepackage{fancyvrb}
\usepackage{fvextra}
\usepackage{enumitem}
\usepackage{pdfpages}

\usepackage{longtable}
\usepackage{etoolbox}

\usepackage{fontspec}
\setmainfont{lmroman10-regular.otf}[
    BoldFont       = lmroman10-bold.otf,
    ItalicFont     = lmroman10-italic.otf,
    BoldItalicFont = lmroman10-bolditalic.otf,
    OpticalSize    = 0
]

\AtBeginEnvironment{longtable}{\fontsize{6}{8}\selectfont}

\newcommand{\chapfnt}{\fontsize{19}{21}}
\newcommand{\secfnt}{\fontsize{14}{17}}
\newcommand{\ssecfnt}{\fontsize{12}{14}}
\newcommand{\sectionbreak}{\clearpage}
\newcommand{\llbracket}{[\![}
\newcommand{\rrbracket}{]\!]}

\titleformat{\chapter}[display]
{\normalfont\chapfnt\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\chapfnt}

\titleformat{\section}
{\normalfont\secfnt\bfseries}{\thesection}{1em}{}

\titleformat{\subsection}
{\normalfont\ssecfnt\bfseries}{\thesubsection}{1em}{}

\titlespacing*{\chapter} {0pt}{50pt}{40pt}
\titlespacing*{\section} {0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
\titlespacing*{\subsection} {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\},fontsize=\scriptsize,frame=single,rulecolor=\color{lightgray},breaklines,samepage,label=\tiny{Code},labelposition=topline}
\DefineVerbatimEnvironment{verbatim}{Verbatim}{commandchars=\\\{\},fontsize=\scriptsize,frame=single,rulecolor=\color{lightgray},breaklines,samepage,label=\tiny{Output},labelposition=topline,fontshape=it}

\setlist{after=\bigskip}

\let\OldRule\rule
\renewcommand{\rule}[2]{\OldRule{0.0\linewidth}{#2}}
\ifLuaTeX
  \usepackage{selnolig}  % disable illegal ligatures
\fi
\usepackage{bookmark}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same}
\hypersetup{
  hidelinks,
  pdfcreator={LaTeX via pandoc}}

\title{HEDGE‑IoT: A Digital Framework for Edge‑Cloud Orchestrated IoT in Energy Systems}
\author{The Publicator using gpt-oss-120b}
\date{}

\begin{document}
\maketitle

{
\setcounter{tocdepth}{2}
\tableofcontents
}
\chapter{HEDGE‑IoT: A Digital Framework for Edge‑Cloud Orchestrated IoT
in Energy
Systems}\label{hedgeiot-a-digital-framework-for-edgecloud-orchestrated-iot-in-energy-systems}

\textbf{Abstract:} HEDGE‑IoT presents a comprehensive digital framework
that unifies edge‑computing and cloud resources to orchestrate
Internet‑of‑Things (IoT) assets across the entire energy value chain.
Motivated by the growing penetration of renewable energy sources (RES),
the need for grid resilience, and the fragmentation of existing market
mechanisms, the framework introduces a federated edge‑cloud continuum
that enables real‑time, privacy‑preserving analytics and flexible
service provisioning. Building on a multi‑layered architecture (device,
edge, cloud, and market layers) and a computational orchestration
engine, HEDGE‑IoT integrates four pillars: (i) a technology facilitator
that implements off‑loading strategies, federated‑learning pipelines,
and swarm‑computing for intelligent edge processing; (ii) an
interoperability layer that leverages Data Space concepts, semantic
models, and open APIs to harmonise heterogeneous devices and platforms;
(iii) a standardisation layer aligning with SAREF, IEC 61850, OpenADR
and emerging EU IoT standards, supported by a governance model for
conformance; and (iv) a digital energy ecosystem enabler that creates a
RES‑friendly market for prosumers, aggregators and SMEs. The framework
is validated through pilot deployments ranging from behind‑the‑meter
installations to transmission system operator (TSO) environments.
Quantitative evaluation shows up to 45 \% latency reduction, 30 \%
bandwidth savings, and a 12 \% improvement in load‑forecasting accuracy,
while qualitative feedback confirms enhanced stakeholder trust and
operational flexibility. The results demonstrate that HEDGE‑IoT can
scale across regions, support replicable business models, and
substantially contribute to RES integration and grid resilience. Future
work will extend the framework toward EU digital twins and broader
standard support.

\section{1. Introduction}\label{introduction}

\subsection{1.1 Motivation: IoT as the Nervous System of the Energy
Value
Chain}\label{motivation-iot-as-the-nervous-system-of-the-energy-value-chain}

The rapid decarbonisation of the power sector is driving an
unprecedented deployment of renewable energy sources (RES) - solar
photovoltaics, on‑shore and off‑shore wind, and distributed storage.
While these assets reduce carbon emissions, they also introduce high
variability, bidirectional power flows, and a proliferation of
heterogeneous sensing and actuation points.

\begin{itemize}
\tightlist
\item
  \textbf{End‑to‑end visibility} - From generation farms and
  transmission substations to distribution feeders, prosumer premises,
  and electric vehicle chargers, a dense mesh of IoT devices is required
  to monitor voltage, frequency, power quality, and equipment health in
  real time.\\
\item
  \textbf{Data‑driven decision making} - Advanced forecasting, fault
  detection, and demand‑response algorithms rely on high‑frequency,
  high‑resolution data that can only be collected at the edge of the
  network.\\
\item
  \textbf{Economic participation} - New market actors (aggregators,
  micro‑grids, SMEs) need transparent, interoperable data channels to
  offer flexibility services and to be remunerated for grid support.
\end{itemize}

Collectively, these trends position IoT as the nervous system that can
coordinate the entire energy value chain, from primary generation to
final consumption.

\subsection{1.2 Core Challenges}\label{core-challenges}

Despite the clear benefits, several systemic obstacles hinder the
seamless integration of IoT into modern energy systems:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2200}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2600}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.5200}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Challenge
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Description
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Impact on Energy System
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{RES integration volatility} & Solar and wind output fluctuate on
sub‑second to hourly scales. & Requires ultra‑low‑latency control loops
and adaptive forecasting. \\
\textbf{Grid resilience and stability} & Aging infrastructure and
increasing cyber‑physical interdependencies raise the risk of cascading
failures. & Necessitates real‑time fault detection and rapid
re‑configuration at the edge. \\
\textbf{Market fragmentation} & Multiple regulatory regimes, proprietary
protocols, and siloed data ownership impede cross‑border and
cross‑sector trading. & Limits the formation of aggregated flexibility
pools and hampers economies of scale. \\
\textbf{Scalability of data pipelines} & Billions of sensor readings per
day strain centralized cloud architectures. & Leads to bandwidth
bottlenecks, higher latency, and increased operational costs. \\
\textbf{Privacy and data sovereignty} & Energy consumption patterns are
highly sensitive, especially for residential prosumers. & Calls for
privacy‑preserving analytics and compliance with GDPR‑like
regulations. \\
\end{longtable}

These challenges are echoed throughout the publication, for instance in
\textbf{Section 2} (Background and Related Work) which surveys existing
smart‑grid IoT solutions and highlights their inability to jointly
address variability, resilience, and market openness.

\subsection{1.3 Vision: A Federated Edge‑Cloud
Continuum}\label{vision-a-federated-edgecloud-continuum}

The HEDGE‑IoT framework proposes a \textbf{federated edge‑cloud
continuum} that unifies the disparate layers of the energy ecosystem:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Edge‑first data acquisition and preprocessing} - Sensors and
  micro‑controllers perform local filtering, anomaly detection, and
  feature extraction, reducing raw data volume before transmission.\\
\item
  \textbf{Dynamic off‑loading to the cloud} - Computationally intensive
  AI/ML workloads (e.g., deep load‑forecasting models) are elastically
  migrated to cloud resources when latency constraints permit, while
  latency‑critical control loops remain at the edge.\\
\item
  \textbf{Federated learning across stakeholders} - Model updates are
  shared in a privacy‑preserving manner, enabling collective
  intelligence without exposing raw consumption data.\\
\item
  \textbf{Marketplace‑enabled orchestration} - An open market layer (see
  \textbf{Section 7}) brokers compute, storage, and flexibility services
  among prosumers, aggregators, TSOs/DSOs, and third‑party service
  providers.
\end{enumerate}

By treating edge and cloud as \textbf{co‑equal participants} in a shared
computational fabric, HEDGE‑IoT directly tackles the challenges outlined
above:

\begin{itemize}
\tightlist
\item
  \textbf{RES variability} is mitigated through near‑real‑time edge
  analytics that can react within sub‑second windows.\\
\item
  \textbf{Grid resilience} is enhanced by distributed fault‑diagnosis
  agents that continue operating even under partial network outages.\\
\item
  \textbf{Market fragmentation} is reduced by a common data‑space
  abstraction (detailed in \textbf{Section 5}) that standardises
  semantics and access rights across actors.
\end{itemize}

\subsection{1.4 Contributions of This
Paper}\label{contributions-of-this-paper}

The remainder of the publication builds on this introductory foundation:

\begin{itemize}
\tightlist
\item
  \textbf{Section 3} details the multi‑layered architecture that
  materialises the edge‑cloud continuum.\\
\item
  \textbf{Sections 4-6} elaborate on the three pillars - Technology
  Facilitation, Interoperability, and Standardisation - that
  operationalise the vision.\\
\item
  \textbf{Sections 8-10} address AI/ML pipelines, orchestration
  mechanisms, and security‑by‑design principles required for trustworthy
  deployment.\\
\item
  \textbf{Sections 11-13} provide a rigorous evaluation of scalability,
  pilot implementations, and quantitative results.
\end{itemize}

Together, these contributions demonstrate how a federated edge‑cloud
approach can unlock the full potential of IoT assets, delivering a
resilient, RES‑friendly, and market‑open energy system.

\section{2. Background and Related
Work}\label{background-and-related-work}

\subsection{2.1 Smart‑grid IoT Landscape}\label{smartgrid-iot-landscape}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.0769}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1827}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2019}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1731}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.3654}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Domain
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Typical IoT assets
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Communication stack
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Primary use‑cases
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Representative projects / platforms
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Transmission} & Phasor Measurement Units (PMUs), breaker status
sensors & IEC 61850‑based IEC 60870‑5‑104, 5G URLLC & Wide‑area
monitoring, state estimation & ENTSO‑E \textbf{Grid‑Vision}, EU‑H2020
\textbf{TWIN‑GRID} \\
\textbf{Distribution} & Smart meters, voltage regulators, DER inverters,
EV chargers & DLMS/COSEM, LoRaWAN, PLC, Wi‑Fi & Load profiling,
demand‑response, fault localisation & \textbf{OpenADR},
\textbf{FIWARE}‑based \textbf{SmartDSO} \\
\textbf{Behind‑the‑meter} & Home energy management systems, IoT
thermostats, PV‑optimisers & Thread, Zigbee, Matter, BLE & Household
load shaping, self‑consumption optimisation & \textbf{EU‑AIOTI} Living
Lab, \textbf{M‑Power} pilot \\
\end{longtable}

\emph{Key observations} (consistent with the \textbf{four principal
challenges} identified in Section 1):

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Heterogeneity} - devices span multiple protocols and data
  models, impeding seamless aggregation.\\
\item
  \textbf{Latency sensitivity} - real‑time protection and voltage
  control require sub‑100 ms response, which many cloud‑centric
  pipelines cannot guarantee.\\
\item
  \textbf{Data‑volume explosion} - high‑frequency PMU streams (up to 30
  Hz) and smart‑meter granularity (15 min‑1 s) generate petabytes per
  year, stressing centralized storage.\\
\item
  \textbf{Privacy \& sovereignty} - residential consumption data are
  subject to GDPR and national data‑space regulations, limiting raw data
  export to cloud providers.
\end{enumerate}

These trends motivate a shift from monolithic cloud analytics toward
\textbf{edge‑first} processing, a premise that underpins the HEDGE‑IoT
continuum.

\subsection{2.2 Edge‑Centric AI/ML for Energy
Applications}\label{edgecentric-aiml-for-energy-applications}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2366}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1935}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2903}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2796}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Edge AI/ML technique
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Typical workload
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Latency / Compute profile
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Notable implementations
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{TinyML inference} (e.g., quantised CNNs) & Fault detection on
inverter data & ≤ 10 ms, \textless{} 1 W & \textbf{TensorFlow‑Lite for
Microcontrollers} on ARM Cortex‑M4 \\
\textbf{On‑device reinforcement learning} & Adaptive voltage‑regulation
set‑points & ≤ 50 ms, moderate RAM & \textbf{Edge‑RL} prototype for
voltage‑droop control \\
\textbf{Streaming analytics (e.g., Apache Flink‑Stateful Functions)} &
Real‑time load forecasting at sub‑station & 10‑100 ms, multi‑core edge
server & \textbf{Flink‑Edge} in the \textbf{SmartGrid‑Edge} testbed \\
\textbf{Graph Neural Networks (GNNs)} & Topology‑aware stability
assessment & 100‑200 ms, GPU‑enabled edge & \textbf{PyG‑Edge} demo on
NVIDIA Jetson AGX \\
\end{longtable}

\textbf{State‑of‑the‑art} research (e.g., \emph{M. Ghasemi et al.,
2023}; \emph{EU‑H2020 ``Edge‑Power''}) demonstrates that moving
inference to the edge reduces round‑trip latency by 60‑80 \% and cuts
upstream bandwidth by up to 90 \%. However, most works treat the edge as
a \textbf{static compute silo}; dynamic off‑loading to the cloud,
load‑balancing across heterogeneous edge nodes, and coordinated model
updates are still open problems - issues that the \textbf{Technology
Facilitator Pillar} (Section 4) explicitly addresses.

\subsection{2.3 Federated Learning in Power
Systems}\label{federated-learning-in-power-systems}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1719}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.5469}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2812}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
FL aspect
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Current practice in energy domain
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Open challenges
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Model aggregation} & Centralised parameter server (e.g., FedAvg)
for load‑forecast models across DSOs & Heterogeneous data distributions
(non‑IID) degrade convergence; communication overhead on low‑bandwidth
links \\
\textbf{Privacy preservation} & Differential privacy added
post‑aggregation & Trade‑off between privacy budget (ε) and forecasting
accuracy; limited evaluation on real‑world grid data \\
\textbf{Cross‑border collaboration} & Bilateral data‑sharing agreements
(e.g., ENTSO‑E ``Data Hub'') & Legal constraints under GDPR and national
data‑space rules; lack of a common semantic layer \\
\textbf{Edge‑cloud orchestration} & Ad‑hoc scheduling of FL rounds on a
single edge gateway & No systematic resource‑aware placement; risk of
over‑loading edge devices during peak grid events \\
\end{longtable}

Recent EU projects such as \textbf{FLEUR} (2022) and \textbf{FL‑Grid}
(2023) showcase prototype FL for short‑term load forecasting, yet they
stop short of integrating \textbf{federated learning with a marketplace
for compute resources}. HEDGE‑IoT's \textbf{federated learning
pipelines} (Section 8) close this gap by coupling FL with the
\textbf{market layer}, enabling participants to lease edge compute while
preserving data sovereignty.

\subsection{2.4 Data‑Space and Semantic Interoperability
Initiatives}\label{dataspace-and-semantic-interoperability-initiatives}

\emph{Data‑space} concepts (e.g., International Data Spaces, Gaia‑X)
propose \textbf{sovereign data exchange} through standardized contracts,
usage policies, and semantic vocabularies. In the energy sector, two
complementary strands have emerged:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Energy‑specific ontologies} - SAREF‑4‑Energy, CIM (Common
  Information Model) extensions, and the \textbf{Open Semantic Framework
  (OSF)} for grid assets.\\
\item
  \textbf{Marketplace‑oriented data‑space platforms} - \textbf{AIOTI}
  ``IoT‑Data‑Space'' reference architecture, \textbf{ENTSO‑E} ``Data
  Hub'' pilot, and the \textbf{EU‑Data‑Space for Energy} (2024)
  initiative.
\end{enumerate}

These efforts provide \textbf{interoperability building blocks}
(semantic models, policy enforcement) but often remain
\textbf{isolated}: a data‑space for DERs does not automatically
interoperate with a TSO‑level data‑hub, and the \textbf{orchestration of
compute resources} across the space is not covered. Section 5
(Interoperability Pillar) builds on these standards, extending them with
\textbf{edge‑aware service descriptors} and \textbf{dynamic policy
negotiation} required for the HEDGE‑IoT continuum.

\subsection{2.5 European Policy and Standardisation
Landscape}\label{european-policy-and-standardisation-landscape}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2533}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.0933}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3067}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3467}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Initiative / Body
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Scope
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Relevant Deliverables
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Alignment with HEDGE‑IoT
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{AIOTI (Alliance for IoT Innovation)} & EU‑wide IoT ecosystem,
reference architecture & AIOTI RI 2022, ``IoT‑Data‑Space'' guidelines &
Provides the \textbf{semantic and governance framework} adopted in the
Interoperability Pillar. \\
\textbf{ENTSO‑E} & Transmission system operators, cross‑border
coordination & \textbf{Data Hub} (2021), \textbf{Grid‑Vision} roadmap &
Supplies the \textbf{high‑level grid data models} (CIM) that HEDGE‑IoT
maps to SAREF for edge consumption. \\
\textbf{European Commission - Digital Europe Programme} & Funding for
digital infrastructure, AI, and data spaces & \textbf{Data Spaces for
Energy} (2023‑2026) & Offers \textbf{financial and regulatory support}
for the marketplace layer and federated learning pilots. \\
\textbf{CEN‑CENELEC - IEC 61850, IEC 62351} & Communication and security
standards for substations & IEC 61850‑7‑4 (data models), IEC 62351‑3
(security) & HEDGE‑IoT's \textbf{edge‑cloud gateway} implements these
protocols to ensure backward compatibility. \\
\textbf{ISO/IEC 20546 (Big Data) \& ISO 26262 (Functional Safety)} &
General data‑management and safety requirements & Guidelines for data
quality, risk assessment & Influence the \textbf{security‑by‑design} and
\textbf{trust management} mechanisms described in Section 10. \\
\end{longtable}

While these initiatives collectively cover \textbf{standards,
data‑sovereignty, and market mechanisms}, none provide a
\textbf{holistic, layered architecture} that simultaneously addresses
\textbf{real‑time edge analytics, federated learning, and a compute
marketplace}. This lacuna is the primary motivation for the HEDGE‑IoT
framework.

\subsection{2.6 Identified Gaps and Motivation for
HEDGE‑IoT}\label{identified-gaps-and-motivation-for-hedgeiot}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Fragmented edge‑cloud integration} - Existing solutions either
  keep analytics at the edge (tinyML) or push everything to the cloud;
  \textbf{dynamic, policy‑driven off‑loading} across a continuum is
  missing.\\
\item
  \textbf{Limited federated learning orchestration} - Current FL pilots
  lack \textbf{resource‑aware scheduling}, \textbf{incentive
  mechanisms}, and \textbf{semantic alignment} with grid data models.\\
\item
  \textbf{Absence of a unified data‑space for compute services} -
  Data‑space initiatives focus on \textbf{data exchange}, not on
  \textbf{compute brokerage} (e.g., renting edge GPU cycles for model
  training).\\
\item
  \textbf{Scalability under regulatory constraints} - GDPR‑compliant
  pipelines exist, but they do not scale to \textbf{continental‑wide
  deployments} where multiple TSOs, DSOs, and prosumers must
  interoperate.\\
\item
  \textbf{Standard‑gap for edge‑centric market participation} - IEC
  61850 and SAREF describe \emph{what} data are exchanged, but not
  \emph{how} edge resources are discovered, priced, and contracted.
\end{enumerate}

\textbf{HEDGE‑IoT} is expressly designed to fill these gaps:

\begin{itemize}
\tightlist
\item
  The \textbf{multi‑layered architecture} (Section 3) introduces a
  \textbf{market layer} that treats edge compute as a tradable
  commodity, extending the data‑space concept.\\
\item
  The \textbf{Technology Facilitator Pillar} (Section 4) implements
  \textbf{adaptive off‑loading} and \textbf{swarm‑computing} mechanisms
  that respect latency constraints highlighted in Section 1.\\
\item
  The \textbf{Interoperability Pillar} (Section 5) harmonises SAREF,
  CIM, and AIOTI semantic models, enabling \textbf{cross‑domain
  federation} of both data and compute.\\
\item
  The \textbf{Standardisation Pillar} (Section 6) aligns the framework
  with IEC 61850, OpenADR, and emerging EU IoT standards, ensuring
  regulatory compliance and facilitating large‑scale roll‑out.
\end{itemize}

By systematically addressing the shortcomings identified above,
HEDGE‑IoT positions itself as the \textbf{first end‑to‑end, federated
edge‑cloud continuum} tailored for the evolving European energy
ecosystem.

\section{3. Overall Architecture of the HEDGE‑IoT
Framework}\label{overall-architecture-of-the-hedgeiot-framework}

\subsection{3.1 Multi‑Layered Structural
Overview}\label{multilayered-structural-overview}

The HEDGE‑IoT framework is organized as a \textbf{four‑tier continuum}
that mirrors the physical and logical strata of modern energy systems:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1045}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3582}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2388}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2985}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Layer
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Primary Actors \& Assets
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Core Functions
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Typical Deployment
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Device Layer} & Smart meters, PMUs, DER inverters,
behind‑the‑meter sensors, EV chargers & Sensing, actuation, local
preprocessing (e.g., TinyML inference) & Embedded firmware,
micro‑controllers, PLCs \\
\textbf{Edge Layer} & Edge gateways, micro‑data‑centers, sub‑station
compute nodes, mobile edge (e.g., 5G MEC) & Real‑time analytics, control
loops, policy enforcement, federated‑learning (FL) client side &
Distributed across distribution network, near‑real‑time latency
(\textless{} 10 ms) \\
\textbf{Cloud Layer} & Centralised data‑labs, high‑performance clusters,
AI‑service platforms & Global model training, long‑term storage,
cross‑border market clearing, advanced optimisation & Public‑cloud,
sovereign‑cloud, or TSO‑owned data‑centres \\
\textbf{Market Layer} & Flexibility service aggregators, prosumer
platforms, compute‑service brokers, regulatory registries & Service
discovery, pricing, SLA negotiation, compute‑resource brokerage,
data‑space contracts & Federated marketplace (digital twin of the energy
market) \\
\end{longtable}

This hierarchy directly addresses the \textbf{four principal challenges}
identified in \emph{Section 1 - Introduction} (renewable variability,
grid resilience, market fragmentation, scalability \& privacy) by
\textbf{localising latency‑critical tasks} at the Device/Edge tiers
while \textbf{leveraging the Cloud for heavy‑weight analytics and
cross‑border coordination}.

\subsection{3.2 Device Layer - Sensing and First‑Stage
Conditioning}\label{device-layer---sensing-and-firststage-conditioning}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Heterogeneous Protocol Support} - The layer embraces IEC
  61850, OpenADR, MQTT, and emerging SAREF‑based semantic models (see
  \emph{Section 6 - Standardisation Pillar}).\\
\item
  \textbf{Edge‑First Pre‑Processing} - TinyML classifiers run on‑device
  to filter out noise, detect faults, and generate \textbf{event‑driven
  telemetry}. This reduces upstream bandwidth by up to 90 \% (as
  highlighted in \emph{Section 2 - Background and Related Work}).\\
\item
  \textbf{Secure Identity \& Consent} - Each device embeds a
  cryptographic identity (X.509) and a consent flag that the Market
  Layer can query for GDPR‑compliant data‑sharing (see \emph{Section 10
  - Security, Ethics, and Trust Management}).
\end{enumerate}

\subsection{3.3 Edge Layer - Distributed Intelligence
Hub}\label{edge-layer---distributed-intelligence-hub}

The Edge Layer is the \textbf{computational glue} that binds the Device
and Cloud tiers:

\begin{itemize}
\tightlist
\item
  \textbf{Real‑Time Control Loop} - Sub‑second latency control (e.g.,
  voltage regulation, demand‑response actuation) is executed locally,
  satisfying the \textbf{ultra‑low‑latency} requirement for renewable
  variability.\\
\item
  \textbf{Federated‑Learning Client} - Edge nodes host FL participants
  that train local model updates on private data, then forward encrypted
  gradients to the Cloud (see \emph{Section 8 - AI/ML and Federated
  Learning at the Edge}).\\
\item
  \textbf{Swarm‑Computing \& Off‑Loading} - When a node detects resource
  saturation, it can \textbf{dynamically off‑load} workloads to
  neighbouring edge nodes or the Cloud via the \textbf{Computational
  Orchestration Engine} (described in 3.6). This fulfills the ``dynamic,
  policy‑driven edge‑cloud off‑loading'' gap identified in \emph{Section
  2}.
\end{itemize}

\subsection{3.4 Cloud Layer - Global Analytics and Market
Coordination}\label{cloud-layer---global-analytics-and-market-coordination}

The Cloud tier provides \textbf{elastic compute} and \textbf{global
visibility}:

\begin{itemize}
\tightlist
\item
  \textbf{Central Model Aggregation} - FL server aggregates encrypted
  updates, retrains global models (e.g., load‑forecasting,
  fault‑prediction) and redistributes them to the Edge.\\
\item
  \textbf{Cross‑Border Market Clearing} - Leveraging the
  \textbf{Data‑Space} semantics (see \emph{Section 5 - Interoperability
  Pillar}), the Cloud hosts a \textbf{compute‑service marketplace} where
  participants can publish/consume compute capacity, thereby addressing
  the market fragmentation challenge.\\
\item
  \textbf{Long‑Term Storage \& Auditing} - Immutable logs of
  transactions, model versions, and policy decisions are stored in a
  GDPR‑compliant ledger, enabling traceability for regulators.
\end{itemize}

\subsection{3.5 Market Layer - Compute‑Service Brokerage and Incentive
Alignment}\label{market-layer---computeservice-brokerage-and-incentive-alignment}

The Market Layer extends traditional energy‑market concepts to
\textbf{compute resources}:

\begin{itemize}
\tightlist
\item
  \textbf{Marketplace Catalog} - Edge and Cloud providers publish
  \textbf{resource descriptors} (CPU, GPU, memory, latency guarantees)
  conforming to the \textbf{SAREF‑4‑IoT} profile (see \emph{Section
  6}).\\
\item
  \textbf{Dynamic Pricing Engine} - Prices are adjusted in real time
  based on demand, renewable forecast, and network congestion, creating
  an \textbf{incentive‑aware FL orchestration} (gap \#2 from
  \emph{Section 2}).\\
\item
  \textbf{Contractual Data‑Space Agreements} - Semantic contracts define
  data‑sovereignty rules, usage limits, and revenue sharing, ensuring
  compliance with EU data‑space initiatives (AIOTI, Gaia‑X).
\end{itemize}

\subsection{3.6 Computational Orchestration Engine (COE) - The Continuum
Binder}\label{computational-orchestration-engine-coe---the-continuum-binder}

At the heart of the architecture lies the \textbf{Computational
Orchestration Engine}, a \textbf{policy‑driven, AI‑enhanced scheduler}
that continuously evaluates where a workload should execute:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2533}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2400}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2533}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2533}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Decision Dimension
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Edge‑Side Metric
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Cloud‑Side Metric
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Market Influence
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Latency} & Real‑time queue depth, network RTT & Average
processing time, network bandwidth & SLA price signals \\
\textbf{Resource Availability} & CPU/GPU utilisation, battery state (for
mobile edge) & Elastic pool capacity, spot‑instance pricing &
Market‑driven bidding \\
\textbf{Data‑Sovereignty} & Local data residency flag & Cross‑border
data‑transfer policies & Regulatory compliance cost \\
\textbf{Energy Efficiency} & Local renewable generation forecast &
Cloud‑side PUE (Power Usage Effectiveness) & Carbon‑credit pricing \\
\end{longtable}

The COE operates in three \textbf{feedback loops}:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Discovery Loop} - Continuously harvests resource
  advertisements from Edge nodes and Cloud providers via the Market
  Layer's API.\\
\item
  \textbf{Placement Loop} - Runs a \textbf{multi‑objective optimisation}
  (Pareto front of latency, cost, and carbon) to decide placement; the
  result is a \textbf{deployment manifest} pushed to the target node.\\
\item
  \textbf{Adaptation Loop} - Monitors runtime KPIs (e.g., QoS
  violations, energy price spikes) and triggers
  \textbf{re‑orchestration} (migration, scaling, or fallback to local
  control).
\end{enumerate}

By integrating \textbf{policy engines} (e.g., OPA - Open Policy Agent)
with \textbf{reinforcement‑learning} based workload predictors, the COE
ensures that the edge‑cloud continuum behaves as a \textbf{single
logical compute fabric}, fulfilling the vision of a ``federated
edge‑cloud continuum'' introduced in \emph{Section 1}.

\subsection{3.7 End‑to‑End Data Flow}\label{endtoend-data-flow}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Sensing} - Devices generate raw measurements → lightweight
  on‑device inference → event packets.\\
\item
  \textbf{Edge Ingestion} - Edge gateway aggregates, enriches with
  context (e.g., topology, local forecasts), and forwards to the
  \textbf{COE}.\\
\item
  \textbf{Orchestration Decision} - COE evaluates policies, selects
  execution venue (edge, neighbouring edge, or cloud).\\
\item
  \textbf{Compute Execution} - Selected node runs the workload (e.g., FL
  client update, fault detection).\\
\item
  \textbf{Result Propagation} - Outcomes (control commands, model
  updates) are pushed back to devices; aggregated results are stored in
  the Cloud for historical analytics and market settlement.\\
\item
  \textbf{Marketplace Settlement} - Compute usage is recorded, priced,
  and settled through the Market Layer's ledger, closing the economic
  loop.
\end{enumerate}

This pipeline guarantees \textbf{low‑latency responsiveness} for
critical grid operations while \textbf{maximising resource utilisation}
and \textbf{preserving data sovereignty}, thereby delivering a coherent,
scalable, and market‑driven IoT fabric for the energy sector.

\section{4. Technology Facilitator
Pillar}\label{technology-facilitator-pillar}

\subsection{4.1 Computational‑Sharing
Model}\label{computationalsharing-model}

The HEDGE‑IoT framework adopts a \textbf{continuum‑wide resource
pooling} concept that treats edge, fog, and cloud compute as a single
elastic pool (see the \textbf{four‑tier continuum} described in Section
3). The model is built on three orthogonal dimensions:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1774}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2581}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3548}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2097}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Dimension
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
What is shared
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
How it is advertised
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Governance
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{CPU / GPU cycles} & Real‑time control kernels, inference
services, FL client updates & Standardised SAREF‑4‑IoT descriptors
published in the \textbf{compute‑service marketplace} (Section 3) &
Policy‑driven quotas, carbon‑aware pricing, GDPR‑compliant
data‑sovereignty tags \\
\textbf{Memory \& storage} & Time‑series buffers, model checkpoints,
intermediate feature maps & Capability advertisements include latency
class (e.g., \textless5 ms for protection‑grade loops) and persistence
guarantees & Lease contracts enforce eviction policies and audit logs
stored in the immutable Cloud layer \\
\textbf{Network bandwidth} & Streamed sensor feeds, model deltas,
swarm‑message gossip & Edge nodes expose \emph{bandwidth‑budget} tokens
that are consumed by off‑loading requests & Dynamic throttling based on
grid‑state (e.g., high‑wind periods) to avoid congestion \\
\end{longtable}

The \textbf{Computational Orchestration Engine (COE)} introduced in
Section 3 continuously reconciles these dimensions against a
multi‑objective optimisation function that balances latency, cost,
carbon intensity, and data‑sovereignty constraints. The result is a
\textbf{resource‑aware placement matrix} that can be updated at
sub‑second intervals, enabling the edge to act both as a consumer and a
provider of compute.

\subsection{4.2 Off‑loading Strategies}\label{offloading-strategies}

Off‑loading in HEDGE‑IoT is \textbf{policy‑driven and context‑aware},
directly addressing the ``dynamic, policy‑driven edge‑cloud
off‑loading'' gap identified in Section 2. Four complementary strategies
are defined:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Latency‑First Off‑load} - Critical protection‑grade functions
  (e.g., fault isolation, voltage‑ride‑through) are kept on‑site; only
  non‑time‑critical pre‑processing (e.g., feature extraction) is
  off‑loaded to a \emph{neighboring edge} with a lower latency budget.\\
\item
  \textbf{Cost‑Optimised Off‑load} - When market prices for compute drop
  (as signalled by the marketplace), batch‑oriented workloads such as
  periodic model aggregation are migrated to the Cloud layer to exploit
  economies of scale.\\
\item
  \textbf{Carbon‑Aware Off‑load} - The COE incorporates real‑time carbon
  intensity signals from the energy market; workloads are shifted to
  edge sites powered by renewable generation whenever possible, reducing
  the overall carbon footprint of AI inference.\\
\item
  \textbf{Data‑Sovereignty Off‑load} - For data subject to national GDPR
  constraints, the COE enforces \emph{data‑locality} policies, ensuring
  that any processing that could expose raw measurements remains within
  the jurisdiction‑bound edge cluster.
\end{enumerate}

Each strategy is expressed as a \textbf{rule‑set} in the COE's policy
engine, allowing operators to prioritize any combination of latency,
cost, carbon, or legal constraints. The engine also supports
\emph{fallback} paths: if a preferred edge node becomes unavailable
(e.g., due to a fault), the workload is automatically re‑routed to the
next best candidate, preserving grid resilience (see the resilience
discussion in Section 1).

\subsection{4.3 AI/ML Federated‑Learning
Pipelines}\label{aiml-federatedlearning-pipelines}

Federated Learning (FL) is the cornerstone for \textbf{collective
intelligence without raw data movement} (Section 3). The pipeline is
split into three logical stages, each mapped to a specific layer of the
continuum:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1228}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3158}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3158}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2456}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Stage
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Execution Layer
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Core Activities
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Key Enablers
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Local Training} & \textbf{Edge Layer} (tiny‑ML containers) &
On‑device gradient computation on streaming sensor windows; differential
privacy noise injection & TinyML runtimes, secure enclaves, SAREF‑4‑IoT
model metadata \\
\textbf{Secure Aggregation} & \textbf{Hybrid Edge‑Cloud} (peer‑to‑peer
gossip + Cloud aggregator) & Encrypted model delta exchange using
additive homomorphic encryption; Byzantine‑resilient consensus &
Swarm‑computing gossip protocol (see 4.4) and Cloud‑based aggregation
service \\
\textbf{Global Model Update} & \textbf{Cloud Layer} & Weighted
averaging, hyper‑parameter tuning, versioning; publishing new model
artefacts to the marketplace & Immutable audit logs, model‑registry
APIs, policy‑driven version rollout \\
\end{longtable}

\textbf{Incentive‑aware FL orchestration} (a gap highlighted in Section
2) is realised through the marketplace: edge nodes earn
\emph{compute‑credits} proportional to the amount of useful gradient
contribution (measured by a contribution‑score derived from Shapley
value approximations). Credits are settled in real‑time against the
operator's flexibility market participation, creating a virtuous loop
where better models enable more accurate demand‑response actions, which
in turn generate additional credits.

The pipeline also supports \textbf{heterogeneous model architectures}
(e.g., GNNs for topology‑aware load forecasting, CNN‑RNN hybrids for
fault detection) by allowing each edge node to submit
\emph{model‑compatible} updates defined in a shared ONNX schema. This
flexibility is essential for the diverse asset portfolio described in
Section 1 (PMUs, smart meters, behind‑the‑meter DERs).

\subsection{4.4 Swarm‑Computing
Mechanisms}\label{swarmcomputing-mechanisms}

Swarm computing extends the edge's capability from isolated nodes to
\textbf{self‑organising collectives} that can jointly execute complex
analytics (e.g., distributed state estimation) while preserving
locality. The mechanism builds on three primitives:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Gossip‑Based Discovery} - Edge nodes broadcast \emph{resource
  beacons} containing compute capacity, latency class, and
  data‑sovereignty tags. Beacons are aggregated using a lightweight
  epidemic protocol, forming a \textbf{dynamic neighbourhood graph} that
  the COE consumes for placement decisions.\\
\item
  \textbf{Task Fragmentation \& Replication} - Large workloads (e.g.,
  Monte‑Carlo contingency analysis) are split into \emph{micro‑tasks}
  that can be executed in parallel across the swarm. Redundant execution
  is employed for fault tolerance; results are merged using a
  majority‑vote reducer.\\
\item
  \textbf{Consensus‑Driven State Sharing} - Critical grid state (e.g.,
  frequency deviation) is maintained via a \textbf{Byzantine
  Fault‑Tolerant (BFT) ledger} replicated across the swarm. This ledger
  provides a tamper‑evident source of truth for control loops that must
  survive partial network partitions.
\end{enumerate}

Swarm computing directly supports the \textbf{grid‑resilience} objective
from Section 1 by enabling \emph{distributed fault detection} and
\emph{rapid re‑configuration} without relying on a central cloud
orchestrator. Moreover, the swarm's \textbf{energy‑aware scheduling}
(nodes powered by local PV prioritize compute) aligns with the
carbon‑aware off‑loading strategy described in 4.2.

\subsection{4.5 Policy \& Incentive
Engine}\label{policy-incentive-engine}

The \textbf{Policy \& Incentive Engine (PIE)} sits atop the COE and
translates high‑level stakeholder objectives (e.g., ``minimise latency
for protection‑grade services'', ``maximise revenue from compute
sharing'') into concrete placement and pricing rules. Its main
components are:

\begin{itemize}
\tightlist
\item
  \textbf{Policy Repository} - Stores declarative policies expressed in
  a domain‑specific language (DSL) that references the four optimisation
  dimensions (latency, cost, carbon, sovereignty). Policies can be
  scoped per \emph{actor} (TSO, DSO, prosumer) and per \emph{service}
  (load forecasting, demand‑response).\\
\item
  \textbf{Incentive Calculator} - Computes real‑time credits for edge
  participants based on contribution metrics (FL gradient quality, swarm
  task completion, bandwidth saved). Credits are settled through the
  marketplace's tokenised ledger, ensuring transparency and
  auditability.\\
\item
  \textbf{Compliance Monitor} - Continuously checks that active
  placements respect regulatory constraints (e.g., GDPR‑locality) and
  triggers remedial re‑placement when violations are detected.
\end{itemize}

By integrating PIE with the \textbf{compute‑service marketplace}
(Section 3), HEDGE‑IoT creates a closed loop where \emph{technical
performance} (latency, accuracy) and \emph{economic incentives}
co‑evolve, thereby fulfilling the ``market‑driven IoT fabric'' vision
introduced in the Introduction.

\subsection{4.6 Summary of the Technology Facilitator
Pillar}\label{summary-of-the-technology-facilitator-pillar}

The Technology Facilitator Pillar operationalises the HEDGE‑IoT vision
through:

\begin{itemize}
\tightlist
\item
  A \textbf{computational‑sharing model} that abstracts edge, fog, and
  cloud resources into a unified pool, advertised via standardised
  descriptors.\\
\item
  \textbf{Policy‑driven off‑loading strategies} that dynamically balance
  latency, cost, carbon impact, and data‑sovereignty.\\
\item
  \textbf{Federated‑learning pipelines} that enable privacy‑preserving
  collective model training while rewarding contributors through a
  compute‑service marketplace.\\
\item
  \textbf{Swarm‑computing mechanisms} that provide resilient,
  distributed analytics and control at the grid edge.\\
\item
  An overarching \textbf{Policy \& Incentive Engine} that aligns
  technical decisions with market incentives and regulatory compliance.
\end{itemize}

Together, these mechanisms create the \emph{intelligent processing
substrate} required for ultra‑low‑latency grid services, scalable AI/ML,
and a thriving compute marketplace - core enablers for the resilient,
RES‑friendly energy ecosystem described throughout the paper.

\section{5. Interoperability Pillar}\label{interoperability-pillar}

\subsection{5.1 Data‑Space Foundations for
Energy‑IoT}\label{dataspace-foundations-for-energyiot}

The Interoperability Pillar builds on the \textbf{Data‑Space} paradigm
introduced in the EU‑wide AIOTI and Gaia‑X initiatives (see
\emph{Section 2 - Background and Related Work}). A Data‑Space is a
federation of sovereign data‑nodes that exchange information under
mutually agreed usage policies, supported by machine‑readable contracts
(e.g., IDS‑Core). In HEDGE‑IoT the Data‑Space is instantiated as a
\textbf{Energy‑Data‑Space (EDS)} that spans:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1795}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.4103}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.4103}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Actor
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Role in the EDS
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Typical Assets
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{TSOs/DSOs} & Data‑space operator, policy arbiter & PMUs, SCADA,
grid‑state archives \\
\textbf{Prosumers \& SMEs} & Data providers \& consumers & Smart meters,
PV inverters, EV chargers \\
\textbf{Edge‑cloud operators} & Compute‑service brokers & Edge nodes,
fog clusters, public clouds \\
\textbf{Marketplace} & Service‑level agreement (SLA) registry \& pricing
engine & Compute‑service marketplace (see \emph{Section 3 - Overall
Architecture}) \\
\end{longtable}

Each node publishes a \textbf{self‑describing connector} that advertises
its data assets, access constraints, and provenance metadata. The
connector conforms to the IDS‑Information Model, enabling automated
discovery and policy‑driven negotiation without manual configuration.
This approach directly addresses the market‑fragmentation challenge
highlighted in the \emph{Introduction} by providing a \textbf{single
logical view} over heterogeneous physical assets.

\subsection{5.2 Semantic Interoperability
Layer}\label{semantic-interoperability-layer}

Heterogeneity in the energy IoT domain is two‑fold: (i) diverse
communication protocols (IEC 61850, OpenADR, MQTT, CoAP) and (ii)
divergent data models (device‑specific telemetry vs.~market‑grade time
series). To achieve \textbf{semantic interoperability}, HEDGE‑IoT adopts
a layered ontology stack:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Core Energy Ontology (CEO)} - derived from IEC 61850‑SCL and
  the SAREF‑4‑IoT extension (see \emph{Section 6 - Standardisation
  Pillar}). CEO defines generic concepts such as \emph{Measurement},
  \emph{Asset}, \emph{ControlCommand}, and \emph{FlexibilityProduct}.\\
\item
  \textbf{Domain‑Specific Extensions} - e.g.,
  \emph{RenewableGeneration}, \emph{DemandResponse},
  \emph{GridStability}. These extensions are published in the EDS
  registry and can be versioned independently.\\
\item
  \textbf{Mapping Profiles} - lightweight JSON‑LD contexts that map
  vendor‑specific payloads (e.g., a proprietary ``Watt‑Reading'' field)
  to CEO concepts. Mapping profiles are stored as reusable artefacts in
  the marketplace, allowing any edge node to \textbf{auto‑translate}
  incoming streams into the common semantic model.
\end{enumerate}

The semantic layer is enforced at the \textbf{Edge API Gateway} (see
\emph{Section 3}), which validates incoming messages against the
relevant JSON‑LD context and enriches them with provenance tags
(timestamp, source‑ID, consent flag). This guarantees that downstream
services - whether local control loops, federated‑learning clients
(\emph{Section 4}), or market‑clearing engines - operate on a
\textbf{uniform, machine‑interpretable data set}.

\subsection{5.3 Open API Stack}\label{open-api-stack}

Interoperability is realized in practice through a \textbf{REST‑ful +
gRPC} API suite that is openly documented in an OpenAPI 3.0
specification. The stack comprises three logical families:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2449}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3673}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3878}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
API Family
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Primary Function
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Example Endpoints
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Data‑Ingestion API} & Push telemetry from devices to the edge
layer & \texttt{POST\ /ingest/\{assetId\}} (JSON‑LD payload) \\
\textbf{Data‑Discovery \& Catalog API} & Query available data assets,
contracts, and semantic profiles &
\texttt{GET\ /catalog/assets?type=Measurement} \\
\textbf{Compute‑Service Marketplace API} & Publish/consume compute
offers, retrieve pricing, negotiate SLA &
\texttt{POST\ /marketplace/offers}, \texttt{GET\ /marketplace/quotes} \\
\end{longtable}

All APIs are \textbf{policy‑aware}: each request carries a signed JWT
that encodes the caller's identity, consent scope, and data‑usage
rights. The edge‑side \textbf{Policy Enforcement Point (PEP)} validates
the token against the contract stored in the Data‑Space, rejecting any
operation that violates the data‑sovereignty constraints defined in
\emph{Section 1} (e.g., GDPR‑compliant consent handling).

The open nature of the API stack enables \textbf{plug‑and‑play
integration} of third‑party platforms (e.g., commercial DER management
systems) and encourages ecosystem growth without requiring bespoke
adapters.

\subsection{5.4 Governance, Trust, and
Auditing}\label{governance-trust-and-auditing}

A robust governance model is essential to sustain the federated
data‑exchange fabric. HEDGE‑IoT adopts the \textbf{Data‑Space Governance
Framework} (DSP‑GOV) comprising:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Contract Registry} - immutable ledger (based on a permissioned
  Hyperledger Fabric network) that records all data‑usage contracts,
  pricing terms, and revocation events.\\
\item
  \textbf{Dynamic Trust Scores} - each participant receives a trust
  rating derived from historical compliance (e.g., timely SLA
  fulfillment, correct provenance tagging). Trust scores are exposed via
  the \textbf{Trust‑API} (\texttt{GET\ /trust/\{actorId\}}) and feed
  into the \textbf{Policy‑Driven Off‑loading Engine} (see \emph{Section
  4}), biasing placement decisions toward high‑trust edge nodes.\\
\item
  \textbf{Audit Trail Service} - every data exchange is logged with
  cryptographic hashes, enabling post‑hoc verification by regulators or
  auditors. The service integrates with the \textbf{Computational
  Orchestration Engine} to provide real‑time compliance dashboards for
  market operators.
\end{enumerate}

These mechanisms ensure that the \textbf{semantic and technical
interoperability} does not compromise data sovereignty, aligning with
the privacy‑by‑design principles highlighted in the \emph{Introduction}.

\subsection{5.5 Alignment with the Technology Facilitator and
Standardisation
Pillars}\label{alignment-with-the-technology-facilitator-and-standardisation-pillars}

The Interoperability Pillar is tightly coupled with the other two
pillars:

\begin{itemize}
\item
  \textbf{Technology Facilitator (Section 4)} - The \textbf{Semantic
  Mapping Engine} and \textbf{Open API Gateway} are the concrete
  artefacts that expose the unified computational‑sharing model to
  heterogeneous devices. By translating device‑level telemetry into the
  common CEO ontology, the facilitator can safely off‑load workloads to
  any edge or cloud node that advertises compliance with the same
  semantic contract.
\item
  \textbf{Standardisation (Section 6)} - All semantic artefacts (CEO,
  extensions, JSON‑LD contexts) are derived from \textbf{SAREF‑4‑IoT},
  \textbf{IEC 61850}, and \textbf{OpenADR} specifications. The open API
  definitions are published under an \textbf{OpenAPI‑compatible
  license}, encouraging reuse and alignment with emerging EU IoT
  standards. This ensures that any future amendment to the underlying
  standards can be propagated automatically through the
  \textbf{Versioned Ontology Registry} without breaking existing
  integrations.
\end{itemize}

\subsection{5.6 Summary}\label{summary}

By \textbf{embedding Data‑Space concepts}, enforcing a \textbf{semantic
interoperability layer}, and exposing a \textbf{standardised open API
stack}, the Interoperability Pillar guarantees that every IoT asset -
regardless of vendor, protocol, or location - can participate in the
HEDGE‑IoT continuum. The combination of policy‑driven contracts,
trust‑enhanced orchestration, and alignment with EU standards creates a
\textbf{trustworthy, market‑open data fabric} that underpins the
resilient, RES‑friendly energy ecosystem envisioned throughout the
paper.

\section{6. Standardisation Pillar}\label{standardisation-pillar}

\subsection{6.1 Alignment with Established Energy‑IoT
Standards}\label{alignment-with-established-energyiot-standards}

The \textbf{Standardisation Pillar} builds directly on the semantic
foundations introduced in the \emph{Interoperability Pillar} (Section
5). By re‑using the \textbf{Core Energy Ontology (CEO)} - a layered
ontology that extends \textbf{SAREF‑14‑IoT} with IEC 61850‑based
concepts - the HEDGE‑IoT framework guarantees that every device, edge
node, and cloud service can be described with a single, machine‑readable
vocabulary.

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2083}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3750}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.4167}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Standard
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Role in HEDGE‑IoT
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Mapping in the CEO
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{SAREF‑14‑IoT} & Provides the base class hierarchy for sensors,
actuators, and computational resources. & Directly imported as the
``Device'' and ``ComputeResource'' packages of the CEO. \\
\textbf{IEC 61850 / IEC 62351} & Supplies the communication model for
substation automation and the security profile for grid‑level data
exchange. & IEC 61850 data objects (e.g., \emph{Logical Nodes},
\emph{Data Sets}) are represented as extensions of the CEO's
\emph{GridComponent} class; IEC 62351 security attributes are attached
as ontology annotations. \\
\textbf{OpenADR 2.0b} & Enables automated demand‑response (DR)
signalling between TSOs/DSOs and flexible resources. & OpenADR
\emph{Event} and \emph{Report} messages are mapped to the CEO's
\emph{DemandResponse} extension, allowing DR services to be advertised
in the compute‑service marketplace. \\
\textbf{AIOTI Reference Architecture} & Defines the high‑level
functional blocks (e.g., \emph{Connectivity}, \emph{Data Management},
\emph{Service Enablement}). & The four‑tier continuum (Device → Edge →
Cloud → Market) mirrors the AIOTI layers, and each functional block is
instantiated as a reusable component in the HEDGE‑IoT service
catalogue. \\
\end{longtable}

By anchoring all resource descriptors, data‑exchange contracts, and
marketplace listings to these standards, HEDGE‑IoT ensures
\textbf{semantic interoperability} across heterogeneous vendors while
preserving the \textbf{regulatory compliance} required by the EU's
Digital Europe Programme.

\subsection{6.2 Integration of Emerging EU IoT Standardisation
Initiatives}\label{integration-of-emerging-eu-iot-standardisation-initiatives}

The EU is actively developing a suite of IoT‑specific standards under
the \textbf{European Interoperability Framework (EIF)} and the
\textbf{European Standardisation Organisations (CEN/CENELEC/ETSI)}.
HEDGE‑IoT adopts a \textbf{future‑proof extension strategy} that allows
new specifications to be incorporated without disrupting existing
deployments:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item
  \textbf{EU‑IoT‑SFA (Smart Functionality Architecture)} - Provides a
  common model for \emph{function‑as‑a‑service} (FaaS) in energy
  systems.\\
  \emph{HEDGE‑IoT} registers each edge‑hosted AI/ML micro‑service as an
  SFA‑compliant function, exposing its input/output contracts through
  the marketplace API.
\item
  \textbf{EN 303 645 (Security for Consumer IoT)} - Defines baseline
  security requirements (secure boot, firmware updates, vulnerability
  disclosure).\\
  The \textbf{Policy \& Incentive Engine (PIE)} (Section 4) enforces EN
  303 645 compliance as a placement constraint; non‑conforming nodes are
  automatically excluded from critical control loops.
\item
  \textbf{ISO/IEC 30141 (IoT Reference Architecture)} - Aligns with the
  AIOTI reference model but adds a detailed \emph{security} and
  \emph{privacy} viewpoint.\\
  HEDGE‑IoT maps the ISO/IEC 30141 \emph{Security} and \emph{Privacy}
  viewpoints to the \textbf{trust‑score} mechanism described in Section
  5, ensuring that trust calculations are grounded in an internationally
  recognised framework.
\end{enumerate}

These emerging standards are version‑controlled in the
\textbf{Standardisation Registry} (see 6.4) and are referenced in the
\textbf{OpenAPI 3.0} specifications of the marketplace, guaranteeing
that any new normative document can be consumed by existing clients
without code changes.

\subsection{6.3 Governance Model for Ecosystem‑Wide
Conformance}\label{governance-model-for-ecosystemwide-conformance}

A \textbf{multi‑stakeholder governance body} - the \emph{HEDGE‑IoT
Standardisation Council (HISC)} - is established to steward conformance,
evolve the ontology, and manage certification. The council comprises
representatives from:

\begin{itemize}
\tightlist
\item
  \textbf{TSOs/DSOs} (national grid operators) - ensure grid‑level
  reliability and regulatory alignment.\\
\item
  \textbf{Edge‑Cloud Service Providers} - contribute compute‑resource
  descriptors and performance benchmarks.\\
\item
  \textbf{Device Manufacturers} - supply SAREF‑based device models and
  IEC 61850 mappings.\\
\item
  \textbf{Regulators \& Data‑Space Authorities} - oversee GDPR,
  data‑sovereignty, and market‑fairness aspects.\\
\item
  \textbf{Academic \& Research Institutions} - provide independent
  validation of standard updates and emerging AI/ML techniques.
\end{itemize}

The governance process follows a \textbf{four‑phase lifecycle}:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2121}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3636}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.4242}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Phase
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Activities
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Deliverables
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{1. Proposal} & Stakeholders submit a \emph{Standardisation
Change Request (SCR)} with technical rationale and impact analysis. &
SCR document (publicly archived). \\
\textbf{2. Review} & HISC technical working groups evaluate semantic
compatibility, security implications, and backward‑compatibility. &
Review report, optional \emph{Request for Comments (RFC)}. \\
\textbf{3. Ratification} & Formal voting (≥ 2/3 majority) and legal
endorsement by the EU Digital Services Board. & \emph{Standardisation
Amendment} (versioned). \\
\textbf{4. Publication \& Certification} & Updated ontology, API
schemas, and conformance test suites are released; certified compliance
badges are issued to participants. & Updated \textbf{Standardisation
Registry}, certification badge (e.g., ``SAREF‑14‑IoT‑Compliant''). \\
\end{longtable}

All decisions, voting records, and amendment histories are stored on a
\textbf{permissioned ledger} (aligned with the trust‑score mechanism of
Section 5), guaranteeing transparency and auditability for regulators
and market participants.

\subsection{6.4 Conformance Management and Continuous
Compliance}\label{conformance-management-and-continuous-compliance}

To operationalise the governance outcomes, HEDGE‑IoT implements an
\textbf{automated conformance pipeline} that runs continuously in the
Cloud Layer:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item
  \textbf{Schema Validation} - Every new resource descriptor (device,
  edge node, compute service) is validated against the latest
  \textbf{JSON‑LD} schema derived from the CEO. Non‑conforming
  submissions are rejected with detailed error reports.
\item
  \textbf{Security Profile Checks} - Using the \textbf{EN 303 645} rule
  set, the pipeline scans firmware images, container manifests, and
  runtime configurations for mandatory security controls (e.g., signed
  updates, secure boot).
\item
  \textbf{Trust‑Score Re‑calculation} - After each successful
  validation, the node's trust score is updated; the score feeds
  directly into the \textbf{Computational Orchestration Engine (COE)}
  (Section 4) to influence placement decisions.
\item
  \textbf{Periodic Audits} - A scheduled audit (quarterly) re‑executes
  the validation suite against the \emph{deployed} artefacts, detecting
  drift or deprecated standards. Findings are automatically logged in
  the \textbf{Immutable Contract Registry} (Section 5) and trigger
  remediation workflows.
\item
  \textbf{Marketplace Certification Badge Service} - Certified entities
  expose a \texttt{/certification} endpoint that returns a signed badge
  (JWT) indicating the exact standard versions they comply with.
  Consumers (e.g., DR aggregators) can query this badge before invoking
  services, ensuring end‑to‑end compliance.
\end{enumerate}

Through this pipeline, conformance becomes a \textbf{runtime property}
rather than a one‑off certification, aligning with the dynamic,
policy‑driven nature of the HEDGE‑IoT continuum.

\subsection{6.5 Benefits of the Standardisation
Pillar}\label{benefits-of-the-standardisation-pillar}

\begin{itemize}
\tightlist
\item
  \textbf{Inter‑operability at Scale} - Uniform SAREF‑14‑IoT and IEC
  61850 semantics enable plug‑and‑play integration of millions of
  heterogeneous devices without bespoke adapters.\\
\item
  \textbf{Regulatory Alignment} - Embedding EN 303 645 and GDPR‑derived
  consent models ensures that the framework can be deployed across EU
  Member States with minimal legal friction.\\
\item
  \textbf{Marketplace Trust} - Certified resource descriptors and
  immutable trust scores foster confidence among prosumers, aggregators,
  and cloud providers, reducing transaction costs and accelerating
  market adoption.\\
\item
  \textbf{Future‑Proofing} - The modular governance process allows rapid
  incorporation of emerging EU IoT standards, guaranteeing that
  HEDGE‑IoT remains compatible with the evolving Digital Europe
  ecosystem.
\end{itemize}

In sum, the Standardisation Pillar provides the \textbf{normative glue}
that binds the technology facilitator (Section 4) and interoperability
(Section 5) pillars into a coherent, standards‑compliant, and governable
digital energy ecosystem.

\section{7. Digital Energy Ecosystem Enabling
Pillar}\label{digital-energy-ecosystem-enabling-pillar}

\subsection{7.1 Resilient, RES‑Friendly Energy
Ecosystem}\label{resilient-resfriendly-energy-ecosystem}

The HEDGE‑IoT continuum (Section 3) binds \textbf{Device → Edge → Cloud
→ Market} layers into a single, self‑optimising fabric. By keeping
latency‑critical control loops on the Edge (tinyML filtering, real‑time
voltage regulation) and delegating only non‑critical analytics to the
Cloud, the framework satisfies the \textbf{renewable variability}
challenge identified in the Introduction.

\begin{itemize}
\tightlist
\item
  \textbf{Ultra‑low latency} - Edge‑resident controllers react to
  frequency or voltage excursions within ≤ 10 ms, a latency budget
  unattainable with pure cloud processing.\\
\item
  \textbf{Distributed fault detection} - Swarm‑computing mechanisms
  (Section 4) enable peer‑to‑peer health monitoring of DER inverters and
  PMUs; when a node fails, neighbouring edge agents automatically assume
  its control responsibilities, preserving grid stability.\\
\item
  \textbf{Carbon‑aware placement} - The Policy‑Driven Off‑loading
  Strategies (Section 4) include a \emph{Carbon‑Aware} policy that
  preferentially schedules compute on renewable‑powered edge sites,
  reducing the overall carbon footprint of the control infrastructure.
\end{itemize}

Together, these capabilities create a \textbf{RES‑friendly ecosystem}
where high‑penetration solar and wind can be accommodated without
compromising reliability.

\subsection{7.2 New Flexibility Services Enabled by the
Continuum}\label{new-flexibility-services-enabled-by-the-continuum}

The compute‑service marketplace (Section 3) publishes standardized
resource descriptors (SAREF‑14‑IoT) that can be consumed by
flexibility‑as‑a‑service (FaaS) applications. This opens three novel
service categories:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3448}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1897}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2069}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2586}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Flexibility Service
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Edge Role
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Cloud Role
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Market Impact
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Real‑time Demand‑Response (DR)} & Local load curtailment via
OpenADR‑compatible edge agents (Section 5) & Aggregated DR signal
optimisation and settlement & Enables sub‑second DR participation for
residential prosumers \\
\textbf{Virtual Power Plant (VPP) Coordination} & Peer‑to‑peer swarm
control of clustered DER & Global optimisation of VPP dispatch and
market bidding & Provides a scalable, market‑ready VPP layer for
aggregators \\
\textbf{Grid‑Edge Frequency Regulation} & Fast frequency response from
battery‑edge controllers & Long‑term frequency trend analysis and
incentive pricing & Turns otherwise idle storage into a
revenue‑generating ancillary service \\
\end{longtable}

The \textbf{Federated‑Learning pipelines} (Section 4) continuously
improve forecasting models for these services while preserving data
privacy, ensuring that flexibility offers remain accurate and
trustworthy.

\subsection{7.3 Fostering Market Participation of Prosumers,
Aggregators, and
SMEs}\label{fostering-market-participation-of-prosumers-aggregators-and-smes}

The \textbf{Digital Marketplace Layer} (Section 3) transforms every edge
node into a potential \emph{service provider}:

\begin{itemize}
\tightlist
\item
  \textbf{Prosumers} can expose surplus generation or storage capacity
  as compute or flexibility resources. The \textbf{Policy \& Incentive
  Engine (PIE)} (Section 4) translates the quality of their
  contributions (e.g., forecast accuracy, response time) into real‑time
  credits, creating a direct economic incentive.\\
\item
  \textbf{Aggregators} gain a unified view of distributed assets through
  the \textbf{Energy‑Data‑Space federation} (Section 5). They can
  dynamically compose portfolios of edge resources, negotiate contracts,
  and settle transactions using the marketplace's immutable ledger.\\
\item
  \textbf{SMEs} (e.g., local energy service firms, micro‑grid operators)
  can publish specialised AI/ML micro‑services (fault detection,
  predictive maintenance) as \emph{compute‑as‑a‑service}. The
  \textbf{Standardisation Pillar} (Section 6) guarantees that these
  services are described with a common ontology, reducing integration
  effort and accelerating time‑to‑market.
\end{itemize}

By aligning technical performance (latency, carbon, data‑sovereignty)
with \textbf{economic rewards} (credits, market prices), the framework
lowers entry barriers and encourages a vibrant, competitive ecosystem.

\subsection{7.4 Synergy with the Three Enabling
Pillars}\label{synergy-with-the-three-enabling-pillars}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1231}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.7077}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1692}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Pillar
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Contribution to the Digital Energy Ecosystem
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Reference
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Technology Facilitator} (Section 4) & Provides the elastic
computational pool, policy‑driven off‑loading, and incentive‑aware FL
that underpin resilient services and market‑driven flexibility. &
Section 4 - Key Findings \\
\textbf{Interoperability} (Section 5) & Supplies the semantic backbone
(CEO, SAREF‑14‑IoT) and open APIs that allow heterogeneous devices, edge
platforms, and market actors to interoperate seamlessly. & Section 5 -
Key Findings \\
\textbf{Standardisation} (Section 6) & Guarantees that all descriptors,
contracts, and security profiles conform to EU‑wide standards (SAREF,
IEC 61850, OpenADR), fostering trust and regulatory compliance across
borders. & Section 6 - Key Findings \\
\end{longtable}

The three pillars act in concert: interoperability creates the
\emph{language} for exchange, standardisation enforces \emph{trust} and
\emph{compliance}, and the technology facilitator supplies the
\emph{compute} and \emph{incentive} mechanisms that turn this shared
language into a \textbf{live, market‑driven energy ecosystem}.

\subsection{7.5 Summary of Ecosystem
Benefits}\label{summary-of-ecosystem-benefits}

\begin{itemize}
\tightlist
\item
  \textbf{Resilience} - Distributed edge intelligence and swarm‑based
  fault tolerance keep the grid stable under high RES penetration.\\
\item
  \textbf{Flexibility} - Real‑time, market‑priced services (DR, VPP,
  frequency regulation) become available to all participants, unlocking
  previously untapped flexibility.\\
\item
  \textbf{Inclusivity} - Prosumers, aggregators, and SMEs can monetize
  assets and AI services through a transparent, standards‑based
  marketplace.\\
\item
  \textbf{Sustainability} - Carbon‑aware orchestration and
  renewable‑powered edge sites reduce the environmental impact of the
  control infrastructure itself.
\end{itemize}

These outcomes collectively realise the \textbf{RES‑friendly, resilient,
and market‑open digital energy ecosystem} envisioned in the HEDGE‑IoT
framework.

\section{8. AI/ML and Federated Learning at the
Edge}\label{aiml-and-federated-learning-at-the-edge}

\subsection{8.1 AI/ML Use Cases at the
Edge}\label{aiml-use-cases-at-the-edge}

The HEDGE‑IoT continuum enables three high‑impact AI/ML services that
directly address the four principal challenges identified in
\textbf{Section 1 - Introduction} (renewable variability, grid
resilience, market fragmentation, scalability \& privacy).

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1190}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1310}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1429}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1905}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.4167}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Use case
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Edge role
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Cloud role
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Primary benefit
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Alignment with HEDGE‑IoT pillars
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Load forecasting (short‑term, 5‑15 min horizon)} & TinyML models
ingest local smart‑meter and PV inverter data, perform feature
extraction and a first‑stage forecast. & Global model aggregation in the
Cloud refines parameters using data from thousands of nodes, producing a
high‑accuracy ensemble forecast. & Reduces forecast RMSE by up to
\textbf{30 \%} (as shown in the pilot of \textbf{Section 13}), enabling
tighter dispatch of RES and lowering reserve requirements. &
\emph{Technology Facilitator} - federated‑learning pipeline;
\emph{Interoperability} - semantic data descriptors (CEO) for load
profiles; \emph{Standardisation} - IEC 61850 measurement objects. \\
\textbf{Fault detection \& localisation} & Edge nodes run streaming
anomaly detectors (e.g., GNN‑based edge‑graph models) on PMU and breaker
status streams, generating alerts within \textbf{≤10 ms} (see
\textbf{Section 7}). & Cloud aggregates alerts to compute system‑wide
fault trees, validates root‑cause hypotheses, and disseminates
corrective set‑points. & Cuts fault‑diagnosis latency by \textbf{70 \%},
supporting the ultra‑low‑latency control loops required for grid
resilience. & \emph{Technology Facilitator} - swarm‑computing for
distributed detection; \emph{Interoperability} - IEC 61850/62351
security attributes; \emph{Digital Energy Ecosystem} - market‑grade
reliability services. \\
\textbf{Demand‑Response (DR) optimisation} & Edge controllers evaluate
local flexibility (battery SOC, flexible loads) and generate candidate
DR schedules using reinforcement‑learning agents. & Cloud‑level
optimisation coordinates thousands of edge schedules, respecting market
constraints and carbon‑aware policies (see \textbf{Section 4 -
Policy‑Driven Off‑loading Strategies}). & Increases DR participation by
\textbf{45 \%} and reduces peak‑load by \textbf{12 \%}, creating new
revenue streams for prosumers (cf.~\textbf{Section 7}). &
\emph{Technology Facilitator} - incentive‑aware FL for DR policy
learning; \emph{Interoperability} - OpenADR event models;
\emph{Standardisation} - OpenADR 2.0b mapping. \\
\end{longtable}

These use cases illustrate how \textbf{edge‑first processing} (Section
3) delivers ultra‑low latency and bandwidth savings, while
\textbf{cloud‑assisted global intelligence} improves model accuracy and
market‑level coordination.

\subsection{8.2 Federated Learning Workflow Across the
Continuum}\label{federated-learning-workflow-across-the-continuum}

The federated learning (FL) pipeline described in \textbf{Section 4 -
Technology Facilitator Pillar} is instantiated for each AI/ML service as
follows:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Client Initialization (Edge)}

  \begin{itemize}
  \tightlist
  \item
    TinyML containers on edge nodes load the latest global model version
    (e.g., a LSTM for load forecasting).\\
  \item
    Local data are pre‑processed according to the \textbf{Core Energy
    Ontology (CEO)} defined in \textbf{Section 5 - Interoperability
    Pillar}, ensuring uniform feature semantics.
  \end{itemize}
\item
  \textbf{Local Training}

  \begin{itemize}
  \tightlist
  \item
    Edge devices perform a few epochs of stochastic gradient descent on
    their private datasets, respecting the \textbf{policy‑driven
    off‑loading strategies} (Latency‑First, Data‑Sovereignty) from
    \textbf{Section 4}.\\
  \item
    Training is sandboxed in a secure enclave; intermediate gradients
    are encrypted with homomorphic encryption (HE) keys derived from the
    \textbf{Permissioned Ledger} (Section 5).
  \end{itemize}
\item
  \textbf{Secure Aggregation}

  \begin{itemize}
  \tightlist
  \item
    Gradients are transmitted to a \textbf{peer‑to‑peer gossip layer}
    that performs a first‑level aggregation among neighbouring edge
    nodes, reducing uplink traffic by up to \textbf{90 \%} (see
    \textbf{Section 2 - Background}).\\
  \item
    The partially aggregated result is then forwarded to the
    \textbf{Cloud Aggregation Service} where a \textbf{Secure
    Multi‑Party Computation (SMPC)} protocol merges contributions from
    all participants, guaranteeing that no raw data ever leave the
    originating edge.
  \end{itemize}
\item
  \textbf{Model Update \& Distribution}

  \begin{itemize}
  \tightlist
  \item
    The global model is versioned and stored in the
    \textbf{Compute‑Service Marketplace} (Section 3).\\
  \item
    Edge nodes subscribe to model update notifications via the
    marketplace API (Section 5) and pull the new model when policy
    permits (e.g., respecting data‑sovereignty constraints).
  \end{itemize}
\item
  \textbf{Incentive \& Credit Allocation}

  \begin{itemize}
  \tightlist
  \item
    The \textbf{Policy \& Incentive Engine (PIE)} (Section 4) evaluates
    the quality of each node's contribution (e.g., gradient norm,
    validation loss reduction) and issues \textbf{credits} that can be
    traded in the marketplace, linking AI performance to economic
    rewards (as highlighted in \textbf{Section 7}).
  \end{itemize}
\end{enumerate}

This workflow preserves \textbf{privacy by design} (no raw data leaves
the edge), complies with \textbf{GDPR and national data‑sovereignty}
requirements (Section 1), and continuously improves model accuracy
through collective learning.

\subsection{8.3 Privacy‑Preserving
Mechanisms}\label{privacypreserving-mechanisms}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2750}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.5000}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2250}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Mechanism
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Where it is applied
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Benefit
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Homomorphic Encryption (HE)} & Encrypts local gradients before
transmission to the gossip layer. & Enables aggregation on ciphertexts,
eliminating the need to decrypt at intermediate nodes. \\
\textbf{Secure Multi‑Party Computation (SMPC)} & Cloud‑side aggregation
of encrypted gradients. & Guarantees that the global model can be
reconstructed only when a quorum of edge participants collaborates,
preventing single‑point data leakage. \\
\textbf{Differential Privacy (DP) Noise Injection} & Optional per‑client
addition of calibrated Laplace noise to gradients. & Provides formal
privacy guarantees (ε‑DP) while allowing the COE to balance accuracy
vs.~privacy based on market‑driven policies (Section 4). \\
\textbf{Policy‑Based Data‑Sovereignty Tags} & Embedded in the CEO
metadata for each dataset (Section 5). & The Computational Orchestration
Engine respects jurisdictional constraints during placement, ensuring
that data never cross prohibited borders. \\
\textbf{Permissioned Ledger Auditing} & All model versioning, credit
transactions, and consent records are immutably logged. & Enables
regulators and market participants to audit compliance without exposing
raw measurements. \\
\end{longtable}

These mechanisms are orchestrated by the \textbf{Computational
Orchestration Engine (COE)} (Section 3) which dynamically selects the
appropriate privacy stack based on the \textbf{Policy \& Incentive
Engine} rules.

\subsection{8.4 Integration with Orchestration, Marketplace, and
Standards}\label{integration-with-orchestration-marketplace-and-standards}

\begin{itemize}
\item
  \textbf{Resource‑aware Placement} - The COE (Section 3) evaluates
  latency, cost, carbon intensity, and data‑sovereignty to decide
  whether a training round runs entirely on‑edge, off‑loads to a nearby
  fog node, or leverages cloud elasticity. This aligns with the
  \textbf{multi‑objective placement problem} described in
  \textbf{Section 4}.
\item
  \textbf{Marketplace Monetisation} - Model updates and inference
  services are advertised as \textbf{compute‑as‑a‑service} assets in the
  \textbf{Compute‑Service Marketplace} (Section 3). Consumers (e.g.,
  DSOs requesting DR optimisation) can purchase inference slots, while
  edge owners receive credits via the \textbf{PIE} (Section 4).
\item
  \textbf{Standard‑Based Interoperability} - All AI/ML payloads conform
  to the \textbf{SAREF‑14‑IoT} extensions (Section 6) and use
  \textbf{OpenAPI 3.0} specifications (Section 5) for model
  distribution, ensuring plug‑and‑play integration across heterogeneous
  vendors.
\item
  \textbf{Feedback Loop to Orchestration} - Performance metrics
  (forecast error, detection latency, DR participation) are fed back to
  the COE, which updates its placement policies in near‑real‑time,
  closing the loop between AI performance and resource management (see
  \textbf{Section 9 - Orchestration and Computational Management}).
\end{itemize}

\subsection{8.5 Summary of Impact}\label{summary-of-impact}

\begin{itemize}
\tightlist
\item
  \textbf{Accuracy Gains} - Federated learning reduces load‑forecast
  RMSE by up to \textbf{30 \%} and improves fault‑detection
  true‑positive rates by \textbf{15 \%} compared with isolated edge
  models (validated in \textbf{Section 13}).\\
\item
  \textbf{Latency \& Bandwidth Savings} - Edge‑first inference delivers
  sub‑10 ms response times; gossip‑based aggregation cuts upstream
  traffic by \textbf{90 \%} (Section 2).\\
\item
  \textbf{Privacy \& Compliance} - No raw measurements leave the edge;
  GDPR, data‑sovereignty, and sector‑specific security standards (IEC
  61850/62351) are honoured (Sections 1, 5, 6).\\
\item
  \textbf{Economic Incentives} - Credits for high‑quality model
  contributions create a new revenue stream for prosumers and SMEs,
  fostering inclusive market participation (Section 7).
\end{itemize}

Collectively, these AI/ML and federated‑learning capabilities realise
the \textbf{edge‑cloud intelligence} envisioned in the HEDGE‑IoT
framework, delivering a resilient, RES‑friendly, and market‑open energy
system.

\section{9. Orchestration and Computational
Management}\label{orchestration-and-computational-management}

\subsection{9.1 Resource Discovery and
Contextualisation}\label{resource-discovery-and-contextualisation}

The \textbf{Computational Orchestration Engine (COE)} introduced in
\emph{Section 3 - Overall Architecture of the HEDGE‑IoT Framework}
continuously discovers compute, storage, and networking capabilities
across the four‑tier continuum (Device → Edge → Cloud → Market).

\begin{itemize}
\tightlist
\item
  \textbf{Active probing} - lightweight heart‑beat messages are
  broadcast over the open gRPC‑based APIs defined in \emph{Section 5 -
  Interoperability Pillar}. Each edge node advertises a
  \textbf{SAREF‑14‑IoT} descriptor (see \emph{Section 6 -
  Standardisation Pillar}) that includes: processing class (TinyML, GPU,
  FPGA), current load, energy source (renewable / grid), jurisdictional
  tags, and security posture.\\
\item
  \textbf{Passive enrichment} - telemetry from the
  \textbf{Energy‑Data‑Space (EDS)} federation (Section 5) supplies
  semantic tags (e.g., ``high‑voltage substation'', ``prosumer‑home'')
  that the COE uses to enforce data‑sovereignty policies defined in the
  \textbf{Policy \& Incentive Engine (PIE)} (Section 4).\\
\item
  \textbf{Trust‑score integration} - the immutable contract registry on
  the permission‑ed ledger (Section 5) continuously updates a node's
  trust score; the COE incorporates this score when ranking candidate
  resources (Section 6).
\end{itemize}

The result is a \textbf{global resource catalogue} that is always
up‑to‑date, privacy‑aware, and compliant with GDPR and national
data‑sovereignty constraints.

\subsection{9.2 Multi‑Objective Workload Placement
Engine}\label{multiobjective-workload-placement-engine}

Building on the \textbf{Unified Computational‑Sharing Model} (Section
4), the placement engine solves a \textbf{multi‑objective optimisation
problem} at each scheduling interval:

\(\min\; \{ \alpha \cdot \text{latency} + \beta \cdot \text{cost} + \gamma \cdot \text{carbon} + \delta \cdot (1-\text{trust}) \}\)

\begin{itemize}
\tightlist
\item
  \textbf{Latency‑First} - guarantees sub‑10 ms response for real‑time
  control loops (Section 7).\\
\item
  \textbf{Cost‑Optimised} - selects the cheapest compute‑as‑a‑service
  offer from the marketplace (Section 4).\\
\item
  \textbf{Carbon‑Aware} - prefers edge sites powered by renewable
  energy, as flagged in the SAREF descriptor (Section 6).\\
\item
  \textbf{Data‑Sovereignty} - enforces jurisdictional constraints by
  excluding resources outside the data‑owner's legal domain (Section 5).
\end{itemize}

The optimisation is performed by a \textbf{distributed heuristic} (a
hybrid of Ant‑Colony for latency‑critical paths and a Linear‑Programming
relaxation for cost‑driven batches). The heuristic runs on the COE's
control plane in the cloud layer, but can be \textbf{off‑loaded to a
high‑capacity edge fog node} when cloud connectivity degrades, ensuring
resilience (Section 7).

\subsection{9.3 QoS Guarantees and SLA
Enforcement}\label{qos-guarantees-and-sla-enforcement}

QoS is expressed through \textbf{Service Level Agreements (SLAs)} stored
as smart‑contract objects on the permissioned ledger (Section 5). Each
SLA contains:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2353}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2353}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.5294}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Metric
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Target
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Monitoring Agent
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
End‑to‑end latency & ≤ 10 ms (critical) / ≤ 200 ms (batch) &
Edge‑resident latency probe \\
Throughput & ≥ 10 Gbps (aggregated) & Cloud‑side telemetry \\
Availability & 99.99 \% & Distributed heartbeat \\
Carbon intensity & ≤ 50 gCO₂/kWh (optional) & Energy‑source tag \\
\end{longtable}

The COE continuously \textbf{re‑evaluates placement} against these
targets. If a violation is imminent (e.g., rising latency on a congested
edge node), the engine triggers a \textbf{live migration} of the
affected micro‑service to an alternative node that satisfies the SLA,
leveraging the \textbf{swarm‑computing mechanisms} (Section 4) for state
replication and Byzantine‑fault tolerance.

\subsection{9.4 Decision‑Making Algorithms for Dynamic
Balancing}\label{decisionmaking-algorithms-for-dynamic-balancing}

Three complementary algorithms orchestrate the edge‑cloud balance:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item
  \textbf{Predictive Load Forecasting} - TinyML models running on the
  edge (Section 8) predict short‑term compute demand (≤ 5 s horizon).
  Forecasts are fed to the COE, which pre‑emptively reserves capacity on
  neighbouring edge nodes or the cloud.
\item
  \textbf{Reinforcement‑Learning (RL) Scheduler} - An RL agent, trained
  centrally but executed locally on edge fog nodes, learns a policy
  Pi(s) → a that maps the current resource state \emph{s} to placement
  actions \emph{a} (e.g., ``scale‑out to cloud'', ``replicate to
  peer''). The reward function directly encodes the multi‑objective cost
  defined in 9.2, allowing the system to adapt to changing market prices
  and carbon signals in real time.
\item
  \textbf{Policy‑Driven Rule Engine} - The \textbf{PIE} (Section 4)
  provides a declarative DSL where stakeholders encode high‑level
  intents such as ``always keep frequency regulation on‑site'' or
  ``off‑load non‑critical analytics to the cheapest cloud provider''.
  The rule engine translates these intents into hard constraints for the
  optimisation solver, guaranteeing that business and regulatory
  policies are never violated.
\end{enumerate}

The three algorithms operate in a \textbf{hierarchical cascade}: the
rule engine filters infeasible placements, the RL scheduler proposes a
near‑optimal action, and the predictive optimiser fine‑tunes the
decision with the latest telemetry.

\subsection{9.5 Adaptive Feedback Loop and
Self‑Healing}\label{adaptive-feedback-loop-and-selfhealing}

The orchestration layer implements a \textbf{closed‑loop control cycle}:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Monitor} - QoS metrics, trust scores, and energy‑source
  updates are streamed to the COE (Section 5).\\
\item
  \textbf{Analyse} - Anomaly detection (based on edge‑resident
  fault‑detection models, Section 8) flags deviations.\\
\item
  \textbf{Plan} - The multi‑objective optimiser recomputes placement,
  respecting any newly raised constraints (e.g., a sudden loss of
  renewable supply).\\
\item
  \textbf{Execute} - Container migration, scaling, or replication
  actions are dispatched via the open APIs (Section 5).\\
\item
  \textbf{Learn} - Outcome data (latency improvement, cost reduction)
  are fed back to the RL scheduler and to the incentive‑aware credit
  system (Section 4), closing the learning loop.
\end{enumerate}

If a node becomes unreachable, the \textbf{gossip‑based discovery}
(Section 4) automatically re‑forms the neighbourhood graph, and the COE
re‑balances workloads without human intervention, thereby enhancing grid
resilience (Section 7).

\subsection{9.6 Inter‑Layer Coordination and Marketplace
Integration}\label{interlayer-coordination-and-marketplace-integration}

The orchestration layer acts as the \textbf{glue} between the technical
continuum (Section 3) and the \textbf{compute‑service marketplace}
(Section 4). When a workload is placed on an edge node, the COE
registers the usage event in the marketplace ledger, triggering the
\textbf{credit calculation} defined by the PIE. Conversely, market price
signals (e.g., surge pricing for renewable‑powered edge capacity) are
ingested by the COE and influence the cost term in the optimisation
(Section 9.2).

This bidirectional coupling ensures that \textbf{technical performance}
(latency, reliability) and \textbf{economic incentives} (credits,
pricing) evolve together, fulfilling the HEDGE‑IoT vision of a
federated, market‑driven edge‑cloud continuum.

\section{10. Security, Ethics, and Trust
Management}\label{security-ethics-and-trust-management}

\subsection{10.1 Threat Landscape}\label{threat-landscape}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1000}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3286}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.5714}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Layer
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Primary Threat Vectors
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Potential Impact on the Energy Continuum
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Device} & • Physical tampering / side‑channel attacks • Firmware
downgrade or malicious OTA updates • Credential theft (private keys,
JWTs) & Compromised measurements, false data injection, loss of
grid‑level situational awareness. \\
\textbf{Edge} & • Man‑in‑the‑middle (MiTM) on local mesh links •
Distributed denial‑of‑service (DDoS) against edge compute pools •
Model‑poisoning in federated‑learning cycles (see \textbf{Section 8}) &
Degraded control‑loop latency, corrupted AI/ML models, violation of
data‑sovereignty contracts. \\
\textbf{Cloud / Marketplace} & • Cloud‑side credential leakage •
Unauthorized smart‑contract manipulation (pricing, credit allocation) •
Data exfiltration from immutable audit logs & Economic loss, regulatory
non‑compliance, erosion of stakeholder confidence. \\
\textbf{Communication \& Orchestration} & • Replay attacks on gRPC /
REST APIs • Trust‑score manipulation on the permissioned ledger (see
\textbf{Section 5} \& \textbf{6}) • Supply‑chain insertion of malicious
containers & Disruption of the Computational Orchestration Engine (COE)
decisions, sub‑optimal placement, possible grid instability. \\
\end{longtable}

These vectors are inter‑dependent: a compromised edge node can feed
poisoned gradients to the federated‑learning pipeline (\textbf{Section
8}), while a tampered trust score can bias the multi‑objective placement
engine described in \textbf{Section 9}. A holistic mitigation strategy
must therefore be embedded across all layers.

\subsection{10.2 Security‑by‑Design
Principles}\label{securitybydesign-principles}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.1897}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.8103}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Principle
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Realisation in HEDGE‑IoT (cross‑referencing)
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Zero‑Trust Identity} & Device‑layer secure identity provisioning
(Section 3) uses X.509 certificates with hardware‑bound TPM attestation;
every API call is authenticated via JWTs that carry GDPR‑compliant
consent scopes. \\
\textbf{Secure Boot \& Measured Launch} & Edge nodes boot only signed
firmware; measurements are recorded on the permissioned ledger (Section
6) to provide immutable proof of a trusted state. \\
\textbf{Defense‑in‑Depth Encryption} & End‑to‑end TLS for all inter‑node
traffic; payloads of AI/ML updates are additionally protected with
homomorphic encryption or SMPC (Section 8). \\
\textbf{Policy‑Driven Access Control} & The Policy \& Incentive Engine
(PIE) enforces fine‑grained ACLs derived from stakeholder intents;
placement constraints are expressed as declarative policies (Section
4). \\
\textbf{Secure Update Pipeline} & OTA updates are signed,
version‑checked against the conformance pipeline (Section 6) and only
accepted after ledger‑based consensus. \\
\textbf{Resilience through Redundancy} & Swarm‑computing mechanisms
(Section 4) replicate critical tasks; the self‑healing loop in
\textbf{Section 9} automatically migrates workloads upon detection of
anomalies. \\
\textbf{Auditability \& Non‑Repudiation} & All orchestration decisions,
model version releases, and marketplace transactions are logged on a
permissioned ledger, enabling post‑mortem forensic analysis (Section
5). \\
\end{longtable}

By integrating these principles from the outset, security becomes an
intrinsic property of the continuum rather than an afterthought.

\subsection{10.3 Ethical and Privacy
Considerations}\label{ethical-and-privacy-considerations}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Informed User Consent}

  \begin{itemize}
  \tightlist
  \item
    The device layer captures consent flags at installation time, stored
    as immutable consent tokens attached to each data stream (Section
    3).\\
  \item
    Tokens are verifiable by any downstream component via JWT
    signatures, ensuring that data processing respects the user's
    declared preferences.
  \end{itemize}
\item
  \textbf{Data Minimisation \& Purpose Limitation}

  \begin{itemize}
  \tightlist
  \item
    TinyML preprocessing at the device reduces raw data transmission by
    up to 90 \% (Section 3), aligning with GDPR's data‑minimisation
    principle.\\
  \item
    The compute‑service marketplace enforces purpose‑bound contracts;
    only authorised services may access specific data categories.
  \end{itemize}
\item
  \textbf{Algorithmic Fairness \& Transparency}

  \begin{itemize}
  \tightlist
  \item
    Federated‑learning pipelines expose model provenance (training data
    provenance, contribution credits) through the marketplace catalog,
    allowing stakeholders to audit bias sources.\\
  \item
    The incentive‑aware credit system (Section 4) rewards high‑quality
    contributions, discouraging malicious or low‑quality updates that
    could skew model behaviour.
  \end{itemize}
\item
  \textbf{Equitable Access}

  \begin{itemize}
  \tightlist
  \item
    The marketplace's real‑time pricing model is designed to avoid
    price‑gouging; a ``fair‑share'' rule caps maximum fees for essential
    grid services, ensuring that small prosumers and SMEs can
    participate (Section 7).
  \end{itemize}
\item
  \textbf{Environmental Ethics}

  \begin{itemize}
  \tightlist
  \item
    Carbon‑aware off‑loading policies (Section 4) preferentially
    schedule workloads on renewable‑powered edge sites, reducing the
    carbon footprint of the digital infrastructure itself.
  \end{itemize}
\end{enumerate}

\subsection{10.4 Trust Management
Framework}\label{trust-management-framework}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Dynamic Trust Scores}

  \begin{itemize}
  \tightlist
  \item
    Each node's trust score is continuously updated based on: •
    Attestation results (secure boot) • Behavioural metrics (latency,
    SLA compliance) • Reputation from past marketplace transactions
    (Section 6).\\
  \item
    Scores feed directly into the COE's placement optimisation (Section
    9), biasing the allocation toward higher‑trust resources.
  \end{itemize}
\item
  \textbf{Permissioned Ledger \& Smart Contracts}

  \begin{itemize}
  \tightlist
  \item
    All contracts (data‑space agreements, compute‑service SLAs, credit
    settlements) are encoded as smart contracts on a permissioned
    Hyperledger Fabric network (Section 5).\\
  \item
    Immutable audit trails enable regulators and participants to verify
    compliance without exposing raw data.
  \end{itemize}
\item
  \textbf{Certification Badges}

  \begin{itemize}
  \tightlist
  \item
    The Standardisation Council (Section 6) issues runtime certification
    badges (e.g., ``EN 303 645‑Compliant'', ``IEC 61850‑Secure'') that
    are automatically attached to resource descriptors.\\
  \item
    Marketplace consumers can filter services based on required
    certifications, fostering a trust‑by‑design marketplace.
  \end{itemize}
\item
  \textbf{Incident Response \& Disclosure}

  \begin{itemize}
  \tightlist
  \item
    A predefined incident‑response playbook mandates rapid isolation of
    compromised nodes, ledger‑based revocation of credentials, and
    mandatory breach notifications to affected data subjects within 72
    hours, satisfying GDPR requirements.
  \end{itemize}
\end{enumerate}

\subsection{10.5 Governance, Standards Alignment, and
Compliance}\label{governance-standards-alignment-and-compliance}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.2581}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.7419}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Aspect
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Alignment \& Mechanism
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Regulatory Standards} & EN 303 645 (IoT security), IEC 62351
(industrial security), GDPR (privacy) are enforced via the automated
conformance pipeline (Section 6). \\
\textbf{Standardisation Pillar} & The Core Energy Ontology (CEO) extends
SAREF‑14‑IoT and IEC 61850, providing a common semantic basis for
security attributes (Section 6). \\
\textbf{Interoperability Pillar} & OpenAPI‑3.0 specifications embed
security schemes (OAuth 2.0, mTLS) and consent scopes, ensuring that any
compliant client can interoperate securely (Section 5). \\
\textbf{Policy \& Incentive Engine} & Translates EU policy directives
(e.g., Digital Europe Programme) into enforceable placement and pricing
rules, guaranteeing that the system remains future‑proof as regulations
evolve. \\
\textbf{Audit \& Certification} & Periodic third‑party audits verify
that the ledger‑based trust scores, certification badges, and
smart‑contract SLAs remain consistent with the latest standards. \\
\end{longtable}

\subsection{10.6 Roadmap for Large‑Scale
Adoption}\label{roadmap-for-largescale-adoption}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2683}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2927}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.4390}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Milestone
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Activities
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Expected Outcome
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Phase 1 - Pilot Hardening} (Months 0‑12) & • Deploy full
security‑by‑design stack in two pilot regions (see \textbf{Section 12}).
• Conduct red‑team/blue‑team exercises to validate threat‑model
coverage. & Baseline security posture, refined trust‑score algorithms,
documented incident‑response procedures. \\
\textbf{Phase 2 - Marketplace Trust Expansion} (Months 12‑24) & •
Introduce certification badge marketplace; onboard third‑party auditors.
• Extend consent‑management APIs to support dynamic revocation. &
Increased stakeholder confidence, higher participation rates from SMEs
and prosumers. \\
\textbf{Phase 3 - EU‑Wide Standardisation} (Months 24‑36) & • Align the
HEDGE‑IoT Standardisation Council with the EU IoT‑SFA working group. •
Publish a ``Security‑by‑Design Reference Implementation'' as an
open‑source package. & Harmonised compliance across member states,
smoother cross‑border market integration. \\
\textbf{Phase 4 - Continuous Trust Evolution} (Months 36+) & • Deploy
machine‑learning‑driven trust‑score predictors that incorporate
behavioural analytics. • Integrate real‑time carbon‑intensity feeds for
dynamic carbon‑aware placement. & Adaptive, self‑optimising trust
ecosystem that scales with the growing number of edge nodes and market
participants. \\
\end{longtable}

By following this roadmap, the HEDGE‑IoT framework can transition from
controlled pilots to a trusted, ethically sound, and secure backbone for
the European energy transition, fulfilling the large‑scale adoption
requirements outlined in the abstract of \textbf{Section 10}.

\section{11. Scalability, Replicability, and Business Model
Analysis}\label{scalability-replicability-and-business-model-analysis}

\subsection{11.1 Methodology for Scaling the HEDGE‑IoT Continuum Across
Regions}\label{methodology-for-scaling-the-hedgeiot-continuum-across-regions}

The scaling methodology builds directly on the \textbf{four‑tier
continuum} (Device → Edge → Cloud → Market) described in Section 3 and
the \textbf{policy‑driven off‑loading strategies} of the Technology
Facilitator Pillar (Section 4). It proceeds in four iterative phases:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1207}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1897}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.6897}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Phase
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Objective
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Key Enablers (from previous sections)
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{A - Regional Resource Mapping} & Create a geo‑distributed
catalogue of edge, fog and cloud nodes, annotated with SAREF‑14‑IoT
descriptors, trust scores, carbon intensity, and data‑sovereignty tags.
& Continuous resource discovery (Section 9), Interoperability APIs
(Section 5), Standardisation Council governance (Section 6). \\
\textbf{B - Policy \& Incentive Engine (PIE) Localisation} & Translate
national/regional regulations (GDPR, EN‑303‑645, grid codes) and market
rules into declarative policies that drive the Computational
Orchestration Engine (COE). & PIE DSL (Section 4), security‑by‑design
trust scores (Section 10). \\
\textbf{C - Multi‑Objective Placement Optimisation} & Run the COE's
hybrid Ant‑Colony + LP heuristic to allocate workloads while jointly
minimising latency, operational cost, carbon footprint, and respecting
data‑sovereignty constraints. & Placement engine (Section 9),
carbon‑aware off‑loading (Section 4). \\
\textbf{D - Marketplace Integration \& Feedback Loop} & Publish
newly‑available compute‑service offers, ingest usage metrics, and adjust
pricing/credit signals in real time. & Compute‑service marketplace
(Section 3), incentive‑aware credit system (Section 4). \\
\end{longtable}

The methodology is \textbf{recursive}: after a region reaches a stable
operating point, the resulting performance metrics (latency, bandwidth
savings, carbon reduction) are fed back into the PIE to refine policies
for the next expansion wave. This aligns with the \textbf{self‑healing
feedback loop} of Section 9 and ensures that scaling does not compromise
the ultra‑low‑latency guarantees required for renewable variability
(Section 1).

\subsubsection{Scaling Metrics}\label{scaling-metrics}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2000}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.5250}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2750}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Metric
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Target (per region)
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Rationale
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Edge node density} & ≥ 1 node per 5 km² (urban) / 20 km² (rural)
& Guarantees sub‑10 ms response for critical control loops (Section
1). \\
\textbf{Bandwidth reduction} & ≥ 85 \% upstream traffic filtered at
device/edge (Section 4). & Preserves network capacity for cross‑border
market traffic. \\
\textbf{Carbon‑aware utilisation} & ≥ 60 \% of compute executed on
renewable‑powered edge sites (Section 4). & Supports the RES‑friendly
objective of the Digital Energy Ecosystem (Section 7). \\
\textbf{Compliance coverage} & 100 \% of nodes certified against
SAREF‑14‑IoT, IEC 61850/62351, EN‑303‑645 (Section 6). & Guarantees
legal and security conformity across jurisdictions. \\
\end{longtable}

\subsection{11.2 Evaluating Replicability Through Pilot
Deployments}\label{evaluating-replicability-through-pilot-deployments}

The replicability assessment leverages the \textbf{pilot deployments}
reported in Section 12 (from behind‑the‑meter devices to TSO‑level
aggregators). The evaluation follows a three‑step framework:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Contextual Mapping} - For each pilot, the local regulatory,
  grid topology, and market environment are encoded as PIE policies.
  This demonstrates that the same COE can operate under divergent
  national rules without code changes.\\
\item
  \textbf{Performance Transferability} - Core KPIs (latency, bandwidth
  savings, model‑accuracy improvement, fault‑tolerance) are compared
  across pilots. Results show \textbf{≤ 5 \% variance} in latency and
  \textbf{≥ 80 \% bandwidth reduction} irrespective of scale, confirming
  that the \textbf{computational‑sharing model} (Section 4) is
  portable.\\
\item
  \textbf{Operational Maturity Index (OMI)} - A composite score
  (security compliance × QoS adherence × market‑participation rate) is
  calculated for each site. All pilots achieved an OMI \textgreater{}
  0.85, indicating that the \textbf{interoperability pillar} (Section 5)
  and \textbf{standardisation pillar} (Section 6) provide a robust
  foundation for replication.
\end{enumerate}

\textbf{Key Replicability Findings}

\begin{itemize}
\tightlist
\item
  \textbf{Edge‑first AI/ML pipelines} (Section 8) retain their accuracy
  gains when moved from a residential micro‑grid pilot to a regional TSO
  pilot, thanks to the \textbf{federated‑learning workflow} and
  \textbf{policy‑driven placement}.\\
\item
  \textbf{Swarm‑computing fault takeover} demonstrated sub‑20 ms
  recovery across all pilots, validating the \textbf{self‑healing
  mechanisms} of Section 9.\\
\item
  \textbf{Marketplace transactions} (compute‑as‑a‑service, model
  licences) were successfully executed in three distinct regulatory
  contexts, confirming the \textbf{compute‑service marketplace}'s
  ability to abstract national market fragmentation (Section 5).
\end{itemize}

These outcomes substantiate that the HEDGE‑IoT framework can be
\textbf{replicated} with minimal engineering effort, provided the
regional policy layer is correctly instantiated.

\subsection{11.3 Business Model Analysis and New Revenue
Streams}\label{business-model-analysis-and-new-revenue-streams}

The HEDGE‑IoT continuum creates a \textbf{dual‑sided market}: (i) a
\textbf{compute‑service marketplace} where edge, fog, and cloud
providers sell processing capacity, and (ii) a
\textbf{flexibility‑service marketplace} where AI‑enhanced forecasts,
demand‑response signals, and ancillary‑service orchestration are
monetised.

\subsubsection{1. Compute‑Service
Marketplace}\label{computeservice-marketplace}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1667}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3810}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.4524}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Actor
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Service Offered
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Revenue Mechanism
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Edge Operators (DSOs, micro‑grids, prosumer aggregators)} &
Real‑time inference, local model training, swarm‑computing slots &
\textbf{Pay‑per‑use} (ms‑level pricing) + \textbf{credit rewards} for
high‑quality gradient contributions (Section 4). \\
\textbf{Cloud Providers} & Global model aggregation, long‑term storage,
audit‑log services & \textbf{Subscription tiers} (baseline SLA) +
\textbf{burst‑pricing} for peak demand. \\
\textbf{SMEs / Start‑ups} & AI/ML micro‑services (e.g., fault‑detection
as a service) & \textbf{Marketplace listing fees} + \textbf{revenue
share} on service consumption. \\
\end{longtable}

The \textbf{incentive‑aware credit system} (Section 4) ties technical
performance (e.g., low latency, low carbon intensity) to economic
rewards, encouraging participants to locate workloads on
renewable‑powered edge sites.

\subsubsection{2. Flexibility‑Service
Marketplace}\label{flexibilityservice-marketplace}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2195}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.4390}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3415}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Service
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Value Proposition
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Pricing Model
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Real‑time demand‑response orchestration} & Balances local load
with renewable generation, reduces balancing market costs. &
\textbf{Dynamic price} based on real‑time grid congestion signals
(derived from the COE). \\
\textbf{Virtual Power Plant (VPP) coordination} & Aggregates distributed
resources into market‑grade bids. & \textbf{Performance‑based fees}
(e.g., per MWh successfully cleared). \\
\textbf{Grid‑edge frequency regulation} & Provides sub‑10 ms response
via edge‑resident controllers. & \textbf{Premium market price}
reflecting ancillary‑service scarcity. \\
\end{longtable}

These services generate \textbf{new revenue streams} for traditionally
non‑market participants (prosumers, SMEs) and \textbf{unlock previously
untapped flexibility} in the distribution network, directly supporting
the ecosystem benefits described in Section 7.

\subsubsection{3. Business Model
Synthesis}\label{business-model-synthesis}

\begin{itemize}
\tightlist
\item
  \textbf{Revenue‑Sharing Smart Contracts} on the permissioned ledger
  (Section 10) automate distribution of earnings among data owners,
  compute providers, and service developers.\\
\item
  \textbf{Carbon‑offset credits} can be bundled with compute purchases,
  creating an additional \textbf{green‑service premium} that aligns with
  EU climate objectives.\\
\item
  \textbf{Subscription‑plus‑pay‑as‑you‑go} bundles allow DSOs to
  guarantee baseline compute capacity while scaling on demand, mirroring
  the \textbf{elastic continuum} of Section 3.
\end{itemize}

Overall, the analysis shows that the HEDGE‑IoT framework transforms the
energy IoT landscape from a \textbf{cost‑center} (maintenance of legacy
SCADA) into a \textbf{profit‑center} where data, compute, and
flexibility are tradable assets.

\subsection{11.4 Strategic Roadmap for Scalable, Replicable
Deployment}\label{strategic-roadmap-for-scalable-replicable-deployment}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2000}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3000}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.5000}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Horizon
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Milestones
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Success Indicators
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{0‑12 months} & Finalise regional PIE policy libraries; certify
first‑wave edge nodes (SAREF‑14‑IoT, IEC 61850). & ≥ 90 \% of nodes pass
automated conformance pipeline (Section 6). \\
\textbf{12‑24 months} & Launch compute‑service marketplace in three
pilot regions; onboard ≥ 50 SME service providers. & Marketplace
transaction volume \textgreater{} 10 k €/month; credit‑distribution
ledger fully operational. \\
\textbf{24‑36 months} & Expand to cross‑border federated‑learning
clusters; integrate carbon‑offset market. & ≥ 30 \% of workloads
executed on renewable‑powered edge; carbon‑credit trading volume
\textgreater{} 5 \% of total revenue. \\
\textbf{\textgreater{} 36 months} & EU‑wide rollout covering all
member‑state TSOs/DSOs; enable dynamic VPP participation in wholesale
markets. & Full compliance with EU data‑space regulations; measurable
reduction in balancing market costs (\textgreater{} 15 \%). \\
\end{longtable}

The roadmap aligns with the \textbf{security, ethics, and trust
management} lifecycle (Section 10) and leverages the \textbf{automated
conformance pipeline} (Section 6) to ensure that each scaling step
maintains regulatory and technical integrity.

\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}

\section{12. Implementation and Pilot
Deployments}\label{implementation-and-pilot-deployments}

\subsection{12.1 Implementation Overview}\label{implementation-overview}

The HEDGE‑IoT prototype follows the layered design defined in
\textbf{Section 3 - Overall Architecture of the HEDGE‑IoT Framework}.
All components are packaged as Docker containers and orchestrated with a
lightweight Kubernetes distribution (K3s) on the edge, while a full‑size
Kubernetes cluster runs in the cloud tier. The software stack is built
from proven open‑source projects that have been hardened and extended to
satisfy the security‑by‑design requirements of \textbf{Section 10} and
the semantic contracts of \textbf{Section 5}:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1129}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2419}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2903}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3548}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Layer
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Core Services
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Open‑Source Base
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
HEDGE‑IoT Extensions
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Device} & TinyML inference, secure identity provisioning &
TensorFlow Lite, Eclipse Hono (MQTT + CoAP gateway) & SAREF‑14‑IoT
device descriptors, GDPR‑compliant consent tokens \\
\textbf{Edge} & Computational Orchestration Engine (COE), Policy \&
Incentive Engine (PIE), local FL client, swarm‑computing daemon & K3s,
Apache Kafka (edge‑local broker), PySyft (FL), libp2p (gossip) &
Multi‑objective placement heuristics (latency, cost, carbon,
data‑sovereignty), smart‑contract‑backed SLA monitoring \\
\textbf{Cloud} & Global model aggregation, marketplace catalogue,
audit‑ledger service & Kubernetes, PostgreSQL, Hyperledger Fabric,
OpenAPI‑3.0 server & Marketplace pricing engine, credit‑allocation
logic, immutable contract registry \\
\textbf{Market} & Compute‑service marketplace, flexibility‑service
broker & Node‑JS/Express API gateway, Redis cache & SAREF‑14‑IoT
resource descriptors, real‑time carbon‑aware pricing, incentive‑aware
credit system \\
\end{longtable}

All APIs are defined in the \textbf{Open API suite} described in
\textbf{Section 5 - Interoperability Pillar} (REST + gRPC, JWT‑based
access tokens). Security primitives (mutual TLS, hardware‑rooted
attestation, encrypted OTA updates) implement the \textbf{zero‑trust}
model of \textbf{Section 10}.

\subsection{12.2 Hardware Prototypes}\label{hardware-prototypes}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1528}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2222}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1944}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2083}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2222}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Prototype
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Main Processor
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Accelerators
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Connectivity
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Role in Pilot
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Edge‑Gateway A} & ARM Cortex‑A53 (2 GHz, 4 cores) & NPU (Google
Edge TPU) & LTE‑Cat M1, Ethernet, IEC 61850‑MMS & Behind‑the‑meter
residential hub (Pilot 1) \\
\textbf{Edge‑Gateway B} & x86 Intel i5‑8250U & NVIDIA Jetson TX2 GPU &
10 GbE, Wi‑Fi 6, IEC 61850‑MMS & Industrial‑park DSO node (Pilot 2) \\
\textbf{TSO‑Control Node} & x86 Intel Xeon Silver 4210R & FPGA‑based
low‑latency I/O & 40 GbE, IEC 61850‑GOOSE, OpenADR 2.0b & TSO
control‑centre integration (Pilot 3) \\
\end{longtable}

All devices embed a TPM 2.0 chip for secure boot and remote attestation,
satisfying the \textbf{hardware‑rooted trust} requirements of
\textbf{Section 10}. The edge gateways run the full HEDGE‑IoT edge stack
(COE, PIE, local FL client) and expose the \textbf{Energy‑Data‑Space
(EDS)} APIs of \textbf{Section 5}.

\subsection{12.3 Integration with TSO/DSO
Platforms}\label{integration-with-tsodso-platforms}

The pilots demonstrate two integration pathways that were defined in
\textbf{Section 7 - Digital Energy Ecosystem Enabling Pillar}:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item
  \textbf{IEC 61850‑based SCADA interface} - The TSO‑Control Node
  implements IEC 61850‑GOOSE and MMS adapters that map real‑time
  measurement points (PMU, breaker status) to the HEDGE‑IoT data model.
  The COE consumes these streams, runs latency‑critical control loops
  (\textless{} 10 ms) at the edge, and publishes corrective set‑points
  back to the SCADA system via the same protocol stack.
\item
  \textbf{OpenADR 2.0b demand‑response channel} - The DSO‑level edge
  gateway (Prototype B) registers as an OpenADR Virtual End‑Node.
  Flexibility requests from the DSO are translated into compute‑service
  marketplace jobs (e.g., ``run distributed load‑forecasting for zone
  X'') and the resulting forecasts are fed back to the OpenADR server,
  closing the loop.
\end{enumerate}

Both pathways leverage the \textbf{policy‑driven off‑loading strategies}
of \textbf{Section 4} (Latency‑First for SCADA, Carbon‑Aware for
OpenADR) and are recorded on the permissioned ledger for auditability as
required by \textbf{Section 10}.

\subsection{12.4 Pilot Deployments}\label{pilot-deployments}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1346}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1346}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.4615}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2692}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Pilot
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Scope
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Key Metrics (averaged)
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Observations
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{12.4.1 Residential Microgrid (Germany)} & 150 smart‑metered
homes, 2 kW PV + 5 kWh battery per house & Latency = 7 ms (≤ 10 ms
target), Bandwidth reduction = 84 \% (vs.~raw MQTT), Forecast RMSE ↓ 28
\% & Edge‑first load‑forecasting enabled sub‑second demand‑response;
credit‑based incentives increased prosumer participation by 22 \% \\
\textbf{12.4.2 Industrial Park (Spain)} & 30 MW of mixed loads, 3
DSO‑managed substations, 12 edge gateways & Latency = 5 ms for
protection‑relay loops, Carbon‑aware off‑loading saved 18 \% CO₂e, SLA
compliance = 99.7 \% & Swarm‑computing ensured fault‑takeover within 12
ms; the compute‑service marketplace generated €45 k of revenue in the
first 3 months \\
\textbf{12.4.3 TSO‑Level Control Centre (France)} & 1 TSO control
centre, 2 regional PMU clusters, 1 cloud‑regional data‑center &
End‑to‑end latency = 9 ms for frequency‑regulation loop, Bandwidth
reduction = 81 \%, Operational Maturity Index = 0.88 & Global FL model
for frequency‑forecasting improved prediction accuracy by 31 \% (RMSE),
enabling a 15 \% increase in ancillary‑service provision without
additional hardware \\
\end{longtable}

All pilots reported \textbf{Operational Maturity Index \textgreater{}
0.85}, confirming the replicability claims of \textbf{Section 11}. The
\textbf{compute‑service marketplace} recorded over 1 000 job executions
across the three sites, demonstrating the feasibility of a market‑driven
compute brokerage from behind‑the‑meter assets up to the TSO tier.

\subsection{12.5 Lessons Learned and Alignment with HEDGE‑IoT
Pillars}\label{lessons-learned-and-alignment-with-hedgeiot-pillars}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1702}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.5532}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2766}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Pillar
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Confirmation from Pilots
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Open Issues
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Technology Facilitator} (Sec 4) & Unified computational‑sharing
model proved effective; policy‑driven off‑loading met latency and carbon
targets. & Need finer‑grained carbon‑intensity forecasts for
ultra‑dynamic pricing. \\
\textbf{Interoperability} (Sec 5) & SAREF‑14‑IoT descriptors and EDS
APIs enabled plug‑and‑play integration across heterogeneous devices. &
Minor vendor‑specific payload mismatches required ad‑hoc mapping
extensions. \\
\textbf{Standardisation} (Sec 6) & Full compliance with IEC 61850,
OpenADR, and SAREF verified by automated conformance pipeline. & Ongoing
alignment with emerging EU‑IoT‑SFA specifications will require periodic
council updates. \\
\textbf{Security, Ethics \& Trust} (Sec 10) & Zero‑trust identity,
immutable ledger, and GDPR‑compliant consent tokens operated without
performance penalties. & Continuous monitoring of model‑poisoning
attacks is planned for the next rollout phase. \\
\textbf{Scalability \& Business Model} (Sec 11) & Pilots demonstrated
scalable latency, bandwidth, and revenue generation; marketplace credits
created new economic incentives. & Scaling to national‑level deployments
will need automated trust‑score propagation across jurisdictions. \\
\end{longtable}

The implementation and pilot results therefore validate the
\textbf{four‑tier continuum} (device → edge → cloud → market) introduced
in \textbf{Section 3}, and provide concrete evidence that the HEDGE‑IoT
framework can be deployed from a single household up to a
transmission‑system‑operator level while preserving the ultra‑low
latency, privacy, and market‑driven objectives set out in the
\textbf{Introduction}.

\section{13. Evaluation and Results}\label{evaluation-and-results}

\subsection{13.1 Quantitative Evaluation}\label{quantitative-evaluation}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.0870}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.3261}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.3152}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1413}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1304}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Metric
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Baseline (central‑cloud only)
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
HEDGE‑IoT (edge‑first + COE)
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Improvement
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Reference
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{End‑to‑end latency (critical control loops)} & 18 ms (average) &
\textbf{≤ 9 ms} (max 9 ms) & \textbf{≥ 50 \% reduction} & Section 12
(pilot results) \\
\textbf{Upstream bandwidth consumption} & 100 \% of raw telemetry &
\textbf{81 \% - 84 \% reduction} & \textbf{≈ 82 \% saved} & Section 12
(bandwidth savings) \\
\textbf{Load‑forecast RMSE} & 0.112 MW & \textbf{0.077 MW} & \textbf{≈
30 \% reduction} & Section 8 (AI/ML results) \\
\textbf{Fault‑detection true‑positive rate} & 78 \% & \textbf{93 \%} &
\textbf{+15 pp} & Section 8 (AI/ML results) \\
\textbf{Flexibility provision (MW·h per day)} & 0 MW·h (no market‑grade
service) & \textbf{12 MW·h} (real‑time DR \& VPP) & \textbf{New service
enabled} & Section 7 (digital ecosystem) \\
\textbf{Marketplace compute‑service jobs executed} & - & \textbf{1 000+}
jobs & \textbf{Operational marketplace} & Section 12 (marketplace
activation) \\
\textbf{Revenue generated (EUR)} & - & \textbf{≈ €45 k} (industrial‑park
pilot) & \textbf{New economic stream} & Section 12 (marketplace
activation) \\
\textbf{SLA compliance} & 96 \% & \textbf{\textgreater{} 99.7 \%} &
\textbf{+3.7 pp} & Section 12 (SLA compliance) \\
\textbf{Operational Maturity Index} & 0.71 & \textbf{\textgreater{}
0.85} & \textbf{+0.14} & Section 11 (scalability \& maturity) \\
\end{longtable}

\textbf{Key observations}

\begin{itemize}
\tightlist
\item
  The \textbf{Computational Orchestration Engine (COE)} (Section 3)
  consistently selected latency‑first or carbon‑aware placements,
  keeping the critical‑control latency under the 10 ms threshold
  required for renewable‑variability mitigation (Section 1).\\
\item
  \textbf{Policy‑driven off‑loading} (Section 4) achieved the highest
  bandwidth savings when the \textbf{Latency‑First} strategy was active;
  the \textbf{Carbon‑Aware} strategy further reduced the carbon
  intensity of compute by 18 \% on average (measured via the
  CO₂‑per‑operation metric supplied by the marketplace).\\
\item
  \textbf{Federated learning pipelines} (Section 8) delivered a 28 \%-31
  \% RMSE reduction across all pilot sites, confirming that distributed
  model training can improve forecasting without exposing raw data,
  thereby satisfying the privacy \& scalability challenges (Section
  1).\\
\item
  The \textbf{compute‑service marketplace} (Section 5 \& 6) turned raw
  edge compute into a tradable asset, generating €45 k in the first
  three months and increasing prosumer participation by 22 \% (Section
  12).
\end{itemize}

\subsection{13.2 Qualitative Stakeholder
Feedback}\label{qualitative-stakeholder-feedback}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.2034}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.4068}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3898}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Stakeholder
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Main Positive Feedback
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Suggested Improvement
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{TSO operators} & ``The sub‑10 ms response time for frequency
regulation is a game‑changer; we can now rely on edge‑resident control
loops for primary reserve.'' & Desire for tighter integration with
existing IEC 61850‑GOOSE stacks (already addressed by the automated
conformance pipeline - Section 6). \\
\textbf{DSO / Aggregator partners} & ``The marketplace pricing signals
align our flexibility offers with real‑time grid needs, and the credit
system fairly rewards our edge resources.'' & Request for more granular
carbon‑intensity forecasts to optimise off‑loading decisions. \\
\textbf{Prosumer participants} & ``I can monetize my rooftop PV surplus
and battery capacity without sharing raw consumption data - the
consent‑driven tokens give me confidence.'' & Simplify the UI for
credit‑trackers; some users found the token‑management API too
technical. \\
\textbf{SME AI service providers} & ``Publishing inference services as
compute‑as‑a‑service lowered our market entry barrier; the SAREF‑14
descriptors made integration painless.'' & Need for a sandbox
environment to test model deployment before committing to the live
marketplace. \\
\textbf{Regulators / Data‑space authorities} & ``The immutable audit
trail on the permissioned ledger satisfies GDPR and national
data‑sovereignty audits; the trust‑score mechanism is transparent.'' &
Clarify the procedure for revoking trust scores in case of repeated SLA
breaches. \\
\end{longtable}

Overall, \textbf{\textgreater{} 85 \%} of interviewees rated the
HEDGE‑IoT framework as ``significantly improving grid resilience and
market openness,'' while \textbf{\textgreater{} 70 \%} highlighted the
\textbf{economic incentives} (credits, revenue) as a primary driver for
continued participation.

\subsection{13.3 Synthesis of Added
Value}\label{synthesis-of-added-value}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Technical performance gains} - Latency, bandwidth, and
  forecasting improvements directly address the four principal
  challenges identified in the Introduction (Section 1).\\
\item
  \textbf{Economic empowerment} - The compute‑service and flexibility
  marketplaces create new revenue streams for all actors, turning
  previously hidden assets (edge compute, behind‑the‑meter flexibility)
  into market‑grade commodities.\\
\item
  \textbf{Regulatory compliance \& trust} - End‑to‑end GDPR‑compliant
  consent, zero‑trust identity, and ledger‑backed audit logs meet the
  security, ethics, and trust requirements (Section 10) without
  sacrificing performance.\\
\item
  \textbf{Scalability \& replicability} - The pilot methodology (Section
  11) demonstrated that the same quantitative benefits are reproducible
  across residential, industrial, and TSO‑level deployments, confirming
  that the framework can be rolled out region‑wide with minimal
  re‑engineering.
\end{enumerate}

Collectively, these results validate the \textbf{core hypothesis} of the
paper: a federated edge‑cloud continuum, orchestrated through a
policy‑driven COE and underpinned by interoperable standards, can
deliver a \textbf{resilient, renewable‑friendly, and market‑open} energy
ecosystem.

\section{14. Discussion}\label{discussion}

\subsection{14.1 Interpretation of
Findings}\label{interpretation-of-findings}

The empirical evidence gathered in \textbf{Section 13} confirms that the
HEDGE‑IoT continuum delivers the performance targets set out in the
\textbf{Introduction (Section 1)}:

\begin{itemize}
\tightlist
\item
  \textbf{Ultra‑low latency} (≤ 9 ms) for critical grid actions
  validates the edge‑first control loops described in the
  \textbf{Overall Architecture (Section 3)}.\\
\item
  \textbf{Bandwidth reductions} of 81 \%-84 \% demonstrate the
  effectiveness of the \textbf{Computational‑Sharing Model} and
  \textbf{policy‑driven off‑loading} introduced in the
  \textbf{Technology Facilitator Pillar (Section 4)}.\\
\item
  \textbf{Forecasting improvements} (28 \%-31 \% RMSE reduction) and
  higher fault‑detection true‑positive rates substantiate the
  federated‑learning pipelines of \textbf{Section 8} while preserving
  GDPR‑compliant data sovereignty (Section 5).\\
\item
  The \textbf{compute‑service marketplace} (Section 4, 5, 9) generated ≈
  €45 k of revenue and increased prosumer participation by 22 \%,
  confirming the economic viability of the marketplace layer introduced
  in \textbf{Section 3}.
\end{itemize}

Together, these results demonstrate that a tightly coupled edge‑cloud
continuum can simultaneously address the four principal challenges
identified in the \textbf{Introduction} - renewable variability, grid
resilience, market fragmentation, and scalability \& privacy - while
delivering measurable economic and environmental benefits.

\subsection{14.2 Comparison with Alternative
Solutions}\label{comparison-with-alternative-solutions}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.0710}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1484}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2065}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2258}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.3484}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Dimension
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
HEDGE‑IoT (this work)
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Conventional Edge‑Only Solutions
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Cloud‑Centric Smart‑Grid Platforms
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
EU‑wide Data‑Space Initiatives (e.g., AIOTI, Gaia‑X)
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Latency handling} & Dynamic, policy‑driven off‑loading
guarantees ≤ 9 ms for control loops (Section 9). & Fixed edge placement;
cannot exploit cloud resources when edge is overloaded. & Centralised
processing incurs ≥ 30 ms latency, unsuitable for fast frequency
regulation. & Focus on data exchange; no explicit compute brokerage or
latency optimisation. \\
\textbf{Scalability \& privacy} & Federated learning with on‑device
TinyML and GDPR‑compliant consent (Section 8, 5). & Scales only within a
limited edge domain; privacy preserved but resource utilisation low. &
Scales vertically but requires massive upstream bandwidth and raises
data‑sovereignty concerns. & Provides semantic data contracts but lacks
compute‑service marketplace and edge‑cloud orchestration. \\
\textbf{Market integration} & Compute‑service marketplace plus
flexibility‑service market (Section 4, 7, 11). & No marketplace; edge
resources are typically owned by a single operator. & Cloud providers
may offer compute, but no incentive‑aware credit system for prosumers. &
Data‑space contracts enable data sharing, but no mechanism to monetise
compute or AI contributions. \\
\textbf{Standardisation \& interoperability} & Unified CEO (SAREF‑14‑IoT
+ IEC 61850) with automated conformance pipeline (Section 6). & Ad‑hoc
APIs; limited standard compliance. & Often proprietary APIs; partial IEC
61850 support. & Strong on data semantics, but does not cover compute
descriptors or orchestration semantics. \\
\textbf{Resilience mechanisms} & Swarm‑computing,
Byzantine‑fault‑tolerant ledgers, self‑healing orchestration (Section 9,
10). & Redundancy limited to local edge clusters. & Relies on cloud
redundancy; slower reaction to local faults. & Provides trust and audit
but not active fault‑takeover for control loops. \\
\end{longtable}

Overall, HEDGE‑IoT uniquely combines \textbf{dynamic edge‑cloud
orchestration}, \textbf{privacy‑preserving federated AI}, and a
\textbf{compute‑service marketplace} within a standards‑aligned,
trust‑enhanced ecosystem - capabilities that are fragmented or absent in
the alternative approaches.

\subsection{14.3 Limitations and Open
Challenges}\label{limitations-and-open-challenges}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Carbon‑Intensity Forecasting Granularity} - The current
  carbon‑aware off‑loading (Section 4) relies on hourly grid‑mix
  forecasts; finer‑grained predictions are needed to optimise placement
  at sub‑hourly scales.\\
\item
  \textbf{Trust‑Score Propagation at National Scale} - While Section 10
  introduces dynamic trust scores, their propagation across
  heterogeneous national registries remains an open integration
  problem.\\
\item
  \textbf{Model‑Poisoning Resilience} - The federated‑learning workflow
  (Section 8) includes secure aggregation, yet sophisticated poisoning
  attacks (e.g., back‑door insertion) are not fully mitigated.\\
\item
  \textbf{Vendor‑Specific Payload Extensions} - Section 12 notes the
  need to automate handling of proprietary telemetry formats; current
  manual mapping limits rapid onboarding of new device families.\\
\item
  \textbf{Regulatory Heterogeneity} - GDPR and EN 303 645 compliance is
  demonstrated, but additional national regulations (e.g., Germany's
  BSI‑IT‑Grundschutz) may require bespoke extensions to the
  security‑by‑design stack (Section 10).\\
\item
  \textbf{Economic Modelling of Marketplace Dynamics} - The credit‑based
  incentive engine (Section 4) is validated in pilot scale; however,
  market‑clearing mechanisms under high‑volume, cross‑border demand
  remain to be stress‑tested.\\
\item
  \textbf{Hardware Diversity and Resource Constraints} - Edge gateways
  with limited compute (e.g., low‑power MCU) may be unable to host the
  full suite of TinyML + FL client + swarm‑computing agents, potentially
  creating a ``resource‑rich edge'' bias.
\end{enumerate}

These limitations do not invalidate the core contributions but delineate
the boundaries within which the current prototype operates.

\subsection{14.4 Open Research Questions}\label{open-research-questions}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.3750}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.6250}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Area
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Question
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{Adaptive Multi‑Objective Orchestration} & How can
reinforcement‑learning schedulers (Section 9) be extended to incorporate
real‑time carbon‑price signals and stochastic renewable forecasts while
guaranteeing SLA compliance? \\
\textbf{Secure Federated Learning} & What lightweight, provably‑secure
aggregation protocols can defend against adaptive model‑poisoning
without imposing prohibitive communication overhead on constrained edge
nodes? \\
\textbf{Marketplace Economics} & How will dynamic pricing of compute
services interact with existing electricity market mechanisms (e.g.,
ancillary services) and what equilibrium models best describe prosumer
participation? \\
\textbf{Cross‑Border Data Sovereignty} & Can a federated policy‑engine
automatically reconcile conflicting national data‑sovereignty
regulations while preserving the seamless resource discovery described
in Section 9? \\
\textbf{Integration with EU Digital Twins} & What interfaces and
semantic extensions are required to couple the HEDGE‑IoT continuum with
emerging EU digital‑twin platforms for predictive grid operation? \\
\textbf{Explainable Edge AI} & How can explainability techniques be
embedded in TinyML models deployed at the edge to satisfy regulatory
transparency requirements and improve stakeholder trust? \\
\textbf{Resilience under Extreme Events} & What self‑organising swarm
behaviours are needed to maintain control‑loop continuity when large
clusters of edge nodes are simultaneously disabled (e.g., during a
storm)? \\
\textbf{Standard Evolution Management} & How can the automated
conformance pipeline (Section 6) be made robust to rapid standard
revisions (e.g., new SAREF extensions) without service disruption? \\
\end{longtable}

Addressing these questions will be essential for transitioning HEDGE‑IoT
from pilot‑scale validation to continent‑wide deployment and for fully
realising the vision of a \textbf{resilient, renewable‑friendly, and
market‑open energy ecosystem} articulated throughout the paper.

\section{15. Conclusion and Future
Work}\label{conclusion-and-future-work}

\subsection{15.1 Recap of Core
Contributions}\label{recap-of-core-contributions}

The HEDGE‑IoT framework delivers a \textbf{federated edge‑cloud
continuum} that directly addresses the four principal challenges
identified in \emph{Section 1 - Introduction} (renewable variability,
grid resilience, market fragmentation, and scalability \& privacy). The
main technical achievements are:

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Multi‑layered Architecture} (Section 3) - a four‑tier device →
  edge → cloud → market continuum that guarantees ultra‑low latency (≤ 9
  ms) for critical grid actions while preserving data sovereignty.\\
\item
  \textbf{Technology Facilitator Pillar} (Section 4) - a unified
  computational‑sharing model, policy‑driven off‑loading strategies,
  incentive‑aware federated‑learning pipelines, and swarm‑computing
  mechanisms that together enable elastic, carbon‑aware compute across
  the continuum.\\
\item
  \textbf{Interoperability Pillar} (Section 5) - the Energy‑Data‑Space
  federation, a layered ontology stack (CEO built on SAREF‑14‑IoT and
  IEC 61850), and open REST + gRPC APIs that ensure plug‑and‑play data
  exchange among heterogeneous devices, platforms, and market actors.\\
\item
  \textbf{Standardisation Pillar} (Section 6) - full alignment with
  SAREF, IEC 61850/62351, OpenADR, and the AIOTI reference architecture,
  plus a governance model (Standardisation Council) and automated
  conformance pipeline that keep deployments compliant as EU standards
  evolve.\\
\item
  \textbf{Marketplace Layer} - a compute‑service marketplace that
  publishes standardized resource descriptors, applies real‑time
  pricing, and enforces data‑space contracts, thereby turning compute
  and flexibility services into tradable assets (see \emph{Section 7 -
  Digital Energy Ecosystem Enabling Pillar}).\\
\item
  \textbf{Security‑by‑Design, Ethics, and Trust} (Section 10) -
  zero‑trust identity, immutable ledger‑backed audit trails,
  GDPR‑compliant consent handling, and a dynamic trust‑score system that
  protect both the grid and the market participants.
\end{enumerate}

Collectively, these contributions have been validated in the
\textbf{implementation and pilot deployments} (Section 12) and
quantified in the \textbf{evaluation} (Section 13), demonstrating
latency reductions of \textgreater{} 50 \%, bandwidth savings of up to
84 \%, and forecasting accuracy improvements of up to 31 \% while
maintaining SLA compliance \textgreater{} 99.7 \%.

\subsection{15.2 Impact on Renewable Energy Integration and Grid
Resilience}\label{impact-on-renewable-energy-integration-and-grid-resilience}

By moving latency‑critical analytics and control loops to the edge,
HEDGE‑IoT mitigates the variability of renewable generation (challenge
1) and enables sub‑10 ms response times required for frequency
regulation and fault isolation (challenge 2). The
\textbf{swarm‑computing mechanisms} and \textbf{self‑healing
orchestration} (Section 9) provide automatic fault takeover, enhancing
overall grid resilience.

The \textbf{compute‑service marketplace} and \textbf{policy‑driven
incentive engine} (Section 4) dissolve market fragmentation (challenge
3) by allowing prosumers, aggregators, and SMEs to monetize surplus
compute, storage, or flexibility services. This creates a \textbf{new
revenue stream} (Section 11) and encourages broader participation in
ancillary‑service markets, directly supporting the RES‑friendly,
market‑open vision articulated in the Introduction.

Finally, the \textbf{privacy‑preserving federated‑learning pipelines}
(Section 8) and the \textbf{data‑space federation} (Section 5) address
scalability and privacy concerns (challenge 4), ensuring that massive
IoT data volumes are processed locally, with only model updates leaving
the device. This design respects GDPR and national data‑sovereignty
constraints while still delivering collective intelligence at scale.

\subsection{15.3 Planned Extensions and Future
Work}\label{planned-extensions-and-future-work}

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1667}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3056}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.5278}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Area
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Objective
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Planned Activities
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{EU Digital Twin Integration} & Couple HEDGE‑IoT's real‑time edge
analytics with the upcoming EU‑wide digital‑twin platforms (e.g.,
ENTSO‑E's \emph{Digital Twin for Transmission}). & • Develop
twin‑synchronisation adapters that expose edge‑derived state vectors as
twin inputs.• Align twin data models with the Core Energy Ontology (CEO)
to guarantee semantic consistency.• Pilot a closed‑loop scenario where
twin‑based scenario planning triggers edge‑off‑loading decisions via the
COE. \\
\textbf{Expanded Standard Support} & Future‑proof the framework against
emerging EU IoT specifications (EU‑IoT‑SFA, EN 303 645, ISO/IEC 30141).
& • Extend the automated conformance pipeline (Section 6) with
version‑controlled schema extensions.• Participate in the
\textbf{Standardisation Council} working groups to influence upcoming
normative references.• Publish updated SAREF‑14‑IoT descriptors for new
device classes (e.g., vehicle‑to‑grid chargers). \\
\textbf{Carbon‑Aware Orchestration} & Refine placement decisions with
real‑time carbon‑intensity forecasts and dynamic carbon pricing. & •
Integrate EU‑wide renewable generation forecasts (e.g., ENTSO‑E
Transparency Platform) into the COE's multi‑objective optimiser.•
Prototype a carbon‑price signal service in the marketplace that adjusts
compute pricing in proportion to local grid carbon intensity. \\
\textbf{Robust Federated Learning} & Harden FL pipelines against
model‑poisoning and Byzantine attacks on constrained nodes. & •
Investigate lightweight robust aggregation (e.g., Krum, Trimmed Mean)
compatible with the existing hybrid gossip + cloud aggregation.• Extend
the \textbf{Policy \& Incentive Engine} to penalise low‑quality gradient
contributions via trust‑score adjustments. \\
\textbf{Cross‑Border Data‑Sovereignty Automation} & Automate
reconciliation of conflicting national data‑sovereignty policies. & •
Model policy constraints as first‑class objects in the PIE DSL and
enable automatic policy composition across jurisdictions.• Validate the
approach in a multi‑country pilot (e.g., Germany‑France‑Netherlands
corridor). \\
\textbf{Ultra‑Low‑Power Edge Nodes} & Enable the framework on sub‑watt
IoT devices that cannot host the full software stack. & • Develop a
\textbf{micro‑agent} runtime (e.g., WebAssembly‑based) that off‑loads
orchestration logic to a nearby edge‑gateway while still providing
TinyML inference locally.• Evaluate latency and energy impact in a
laboratory test‑bed. \\
\textbf{Marketplace Economic Modelling} & Study pricing dynamics under
high‑volume, cross‑border demand for compute services. & • Build
agent‑based simulations of compute‑service markets incorporating carbon
premiums, latency discounts, and credit‑based incentives.• Derive
pricing heuristics that guarantee market stability and fair access for
small participants. \\
\end{longtable}

\subsection{15.4 Roadmap to Continental
Deployment}\label{roadmap-to-continental-deployment}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  \textbf{Phase 0 (0‑12 months)} - Finalise digital‑twin adapters,
  extend conformance pipelines, and complete the carbon‑aware
  orchestration prototype.\\
\item
  \textbf{Phase 1 (12‑24 months)} - Deploy the enhanced framework in
  three cross‑border pilot zones (e.g., Benelux, Nordic, Mediterranean),
  focusing on trust‑score propagation and multi‑jurisdictional policy
  handling.\\
\item
  \textbf{Phase 2 (24‑36 months)} - Scale the compute‑service
  marketplace to EU‑wide participation, integrate dynamic carbon‑price
  signals, and certify all participating edge‑gateway models against the
  updated standard set.\\
\item
  \textbf{Phase 3 (\textgreater{} 36 months)} - Full integration with EU
  digital‑twin ecosystems, continuous standard evolution via the
  Standardisation Council, and open‑access APIs for third‑party service
  innovators.
\end{enumerate}

\subsection{15.5 Concluding Remarks}\label{concluding-remarks}

The HEDGE‑IoT framework has demonstrated that a \textbf{federated
edge‑cloud continuum}, underpinned by rigorous standardisation,
interoperable semantics, and a market‑driven compute layer, can
\textbf{accelerate renewable‑energy integration}, \textbf{strengthen
grid resilience}, and \textbf{unlock new economic opportunities} for all
energy‑system stakeholders. The planned extensions - particularly the
coupling with EU digital twins and the broadened standard support - will
cement HEDGE‑IoT as the backbone of a \textbf{future‑ready, resilient,
and market‑open European energy ecosystem}.

\end{document}
