Skip to Content
EngEng
  • Article
  • Open Access

3 December 2026

23 Pages

Predictive Agent-Based Framework for Adaptive Lossless Compression and Tiered Storage of Neonatal EEG Data

,
,
and
Laboratory of Computer Research, Department of Computer Science, Faculty of Sciences, Ibn Tofail University, Kenitra 14000, Morocco
*
Author to whom correspondence should be addressed.

Abstract

The growing volume of neonatal electroencephalography (EEG) data requires storage solutions that reduce capacity requirements while preserving signal integrity and timely access to clinically relevant recordings. We present a predictive agent-based architecture for adaptive lossless compression and tiered storage of EEG data. The system includes EEG profiling, prediction of codec performance and 24 h access, multi-objective codec–tier selection, stability-controlled execution, integrity verification, and feedback-driven adaptation. Recommendations are executed only after consecutive confirmations, when the minimum expected-gain level is met and the cooldown is validated, thereby avoiding wasteful recompression and migration. The framework was evaluated on 1422 codec experiments on 79 neonatal EEG records in EDF. Predictive models estimated compressed-size fraction, compression time, decompression time and future access behaviour. Physical execution of the initial selected configuration across all 79 EEG recordings achieved a 20.72% reduction in managed-copy storage, corresponding to a 10.36% reduction in the complete storage footprint when the preserved original EDF files are included. Within the four-cycle experimental evaluation, the proposed control technique reduced storage-state changes by 66.67% compared with the immediate predictive strategy and prevented recurrent state changes, while the corresponding differences in managed-copy storage saving and access-weighted relative latency did not reach statistical significance after Holm correction. In the tested local fault-injection environment, the retry and deduplication mechanisms maintained exactly once task execution and integrity preservation for workloads up to 3160 EEG-cycle tasks. These results support the feasibility of the proposed framework as a proof of concept under controlled experimental conditions; validation with real hospital access logs, physically distinct storage tiers, and distributed deployment is still required before real-world performance can be established.

1. Introduction

Electroencephalography (EEG) is a non-invasive technology that provides continuous, high-temporal-resolution information about cerebral activity. This is especially true in the neonatal critical care unit, where neurological deterioration and seizures may not be consistently diagnosed by clinical observation alone. Hypoxic–ischemic encephalopathy (HIE) is one of the most important causes of neonatal seizures. Neonatal seizures are mostly electrographic phenomena. To summarize, long-term conventional video-EEG monitoring remains the gold standard for seizure detection, evaluation of cerebral background activity, treatment advice, and neurological prognostication [1]. Automated monitoring of neonatal EEG background activity also showed significant predictive value in the first hours of life in hypothermia-treated neonates with moderate-to-severe HIE [2].
Clinical significance of neonatal EEG goes beyond rapid bedside monitoring. Early quantitative EEG parameters may be helpful for assessment of HIE severity and identification of neonates who need therapeutic hypothermia [3,4]. Quantitative EEG characteristics during the first day of life have also been correlated to later clinical outcomes [5]. Automated background analysis has shown potential for neurodevelopmental prediction [6,7]. Such findings are of special importance since therapeutic and prognostic information may be obtained from the same recording at different stages of patient management. For example, early EEG analysis within the treatment window has been shown to differentiate mild HIE from moderate-to-severe HIE requiring hypothermia [3].
The growing usage of artificial intelligence adds to the potential value of archived newborn EEG. Automated HIE grading has been researched using signal-processing and machine-learning models on long-duration recordings [8], and multi-channel EEG has been studied with fully convolutional neural networks and time-frequency deep learning methods [9,10]. Machine learning has also been employed for early prediction of newborns who are at risk of electrographic seizures following hypoxic–ischemic injury [11] and externally validated deep-learning models have illustrated the potential of automated bedside characterization of neonatal brain activity [12]. With these results, it seems that newborn EEG recordings are not to be treated as ephemeral monitoring signals. Rather, they are reusable clinical data that can be used to support diagnostic re-evaluation, prognostic modelling, algorithm creation and future studies not expected at the time when the recording was obtained.
The increasing analytical usefulness of EEG is related to large data-management requirements. Continuous EEG monitoring can last many hours or even days and can produce gigabytes of data for a single patient, especially if raw multichannel signals, annotations, synchronized physiological measurements and video are kept [13]. This difficulty is aggravated by the increasing channel counts and sampling frequencies in current acquisition systems. Thus, EEG datasets are characterized by long recording times, high dimensionality, and significant processing requirements [14]. Thus, efficient storage and retrieval techniques are needed to facilitate routine clinical access and later computer analysis.
Simultaneously, the structural features of EEG signals contribute to their compressibility. The physical size of multichannel recordings can be reduced by exploiting the high degree of temporal redundancy and correlation between nearby electrodes [15]. More recent results have shown the potential of signal-processing algorithms to exploit spatial correlations between the EEG channels in compression for better representation of data [16]. However, medical EEG archives demand more stringent criteria than normal multimedia archiving, because clinically significant signal features must be retained for future evaluation. The modification that seems trivial to one study can affect a later diagnostic or machine learning activity. Hence, precise reconstruction of the original information is a critical need when the compression is intended for long-term clinical preservation. Lossless compression is thus particularly appropriate for such applications since it allows reducing storage requirements without adding reconstruction error. One cannot just look at the reduction in file size to measure the efficiency of compression.
The same EEG recording, depending on the lossless codec chosen, could have substantially different compressed sizes, compression times, decompression times and processing requirements. Moreover, an aggressive and computationally expensive representation may not be appropriate for a recording that is to be accessed frequently. For historical data that is rarely accessed, nevertheless, the extra processing burden may be acceptable. The optimal storage architecture depends on the features of the EEG recording, the behaviour of the codec and the predicted need for future access.
This leads to a significant relationship between compression and storage placement. A recording that is accessed frequently should preferably be stored in a configuration that provides low retrieval delay. A recording that is rarely used can be optimized for storage efficiency. The status of access to the same EEG object can also change with time, with clinical assessment, research use, or analytical operations. Thus, no set codec and static storage tier can efficiently manage all recordings during the whole lifecycle. Instead, an adaptive storage system should anticipate future demand and determine if a recording should be easily available, moved to archive storage, or have its compressed representation altered.
A second difficulty has to do with the stability and safety of adaptive judgements. As access patterns and anticipated costs alter over subsequent decision cycles, the suggestions of predictive models may change accordingly. Therefore, immediate execution of each anticipated optimum may induce frequent recompression or migration between layers and increase the computational burden without a tangible long-term advantage. This fluctuating nature is not acceptable for medical archives. Moreover, the creation of a compressed or migrated item is not proof that the action should be permitted. The reconstructed file shall be similar to the source data and legible in its original medical format before deletion of the preceding managed object. These requirements motivate the need to examine how existing studies have addressed compression, predictive storage management, and adaptive data placement.
Several studies have addressed individual aspects of this problem, including biomedical signal compression, predictive codec selection, access-aware storage tiering, and adaptive storage management. Jacobsson et al. studied lossless and near-lossless compression for a set of biomedical signals and noted that small waveform changes must be retained because their future clinical relevance may not be understood a priori [17]. Idrees and Idrees developed a fog-enabled lossless compression strategy for EEG data based on hierarchical clustering and Huffman encoding. This technique reduces the amount of EEG data sent to the cloud while allowing perfect reconstruction of the signal [18].
The studies show the importance of lossless compression in biological applications. However, they are often based on a fixed compression approach and therefore do not select a codec dynamically based on the structural properties and processing needs of each recording. No single best compression technique exists, which has resulted in the creation of learnt codec selection approaches. Woltmann et al. [19] modelled compression algorithms as independent black boxes and applied supervised learning to predict their performance based on data characteristics. Their results reveal that the best compression method is determined by input data, hardware environment and optimization target. However, their work focused on lightweight integer compression of database columns. It did not take the entire biomedical file into account, forecast both compression and decompression overheads for clinical recordings, or consider codec selection with storage placement. The present work, instead, estimates the compressed-size fraction, compression time and decompression time of each possible lossless codec and then makes a storage decision. Alternatives to static storage-management rules have also arisen in the form of machine-learning-based caching and tiering. Savva et al. [20] examined learning-based techniques for admission, eviction, prefetching, placement, and migration across heterogeneous storage tiers. Such solutions leverage past access information to keep frequently requested data on faster devices and move cooler data to less expensive tiers. Ruan et al. [21] provided an LSTM-based framework for prediction of storage demands and illustrated the importance of temporal forecasting for proactive scheduling and load balancing. Later, Xing and Wang coupled access-pattern prediction with multi-objective reinforcement learning to optimize latency, throughput, cost, and migration overhead in heterogeneous storage tiers [22]. Although these approaches show the advantages of predictive placement, they usually optimize storage location without considering the physical representation of the stored object. Therefore, the relationship between codec choice, compressed size, decompression overhead, retrieval latency and future access demand has not been well studied.
Adaptive storage management has also been explored using artificial intelligence and multi-agent systems. Bahrampour et al. proposed a coordinator and several specialized agents to dynamically distribute data among blockchain, IPFS and cache layers while balancing cost, retrieval delay and data integrity [23]. Abueid introduced a decision-tree-based cloud replication model that dynamically adjusts replicas according to system conditions, performance requirements and cost constraints [24].
These investigations justify distinct decision components and adaptive storage policies. However, they address either replication or hybrid-storage allocation, rather than compression-aware management of biomedical recordings. They also do not explicitly combine decision-stability safeguards with file-level integrity verification after physical reconfiguration. Related threshold-based mechanisms have been applied in adaptive storage management to limit unnecessary data relocation between storage tiers [25]. In the present study, consecutive confirmation, a minimum expected-gain threshold, and a cooldown period are used as practical stability safeguards to reduce unnecessary codec–tier reconfigurations. These mechanisms are not claimed as new control-theoretic contributions; rather, their contribution lies in their integration into the coupled compression-and-tiering decision process for EEG storage. Existing studies have largely addressed lossless biomedical-signal compression, learned codec selection, access forecasting, multi-tier placement, and adaptive storage management as separate problems. Consequently, limited attention has been given to the coordinated management of an EEG recording’s physical representation and storage placement while simultaneously considering predicted codec performance, future access demand, reconfiguration overhead, decision stability, and post-execution data integrity.
This study contributes an integrated decision-and-execution framework for adaptive EEG data management, rather than individual compression codecs or prediction algorithms. For each EEG recording, the proposed method jointly evaluates the physical data representation and storage placement by combining predicted compression efficiency, compression and decompression overheads, anticipated access behaviour, tier characteristics, and reconfiguration cost within a common multi-objective decision process. The selected recommendation is then subjected to stability control before physical execution, and the resulting object is accepted only after integrity verification. This coordinated process therefore links prediction, codec–tier decision-making, controlled reconfiguration, and integrity-preserving execution within a single adaptive storage workflow. The individual components, including standard lossless codecs, linear regression, Random Forest models, and stability-control mechanisms, are established techniques; they are used here as components of the coordinated decision framework rather than being claimed as individual algorithmic innovations.
In this paper, a predictive agent-based architecture for adaptive lossless compression and tiered storage of neonatal EEG recordings is proposed. Seven specialized agents perform EEG profiling, codec-performance prediction, 24 h access prediction, joint codec–tier decision-making, physical execution, integrity verification, and feedback management, while a separate stability-control mechanism regulates whether recommended changes are executed. The estimated compressed-size fraction, compression time and decompression time reflect codec behaviour when future demand is categorized as HOT, WARM or COLD across FAST, STANDARD and ARCHIVE storage tiers. A new configuration is executed only if it satisfies the cooldown condition, remains consistent across successive decision cycles, and exceeds the minimum expected-gain threshold. After the execution, the reconstructed recording is confirmed with SHA-256 and EDF readability checks. Retry and message-deduplication procedures further increase workflow reliability.
The framework was evaluated on 79 neonatal EEG recordings from a publicly available dataset [26]. The evaluation comprised 1422 codec experiments, predictive modelling, joint codec–tier optimization, adaptive execution, statistical analysis, ablation studies, and resilience testing. Physical execution of the initial selected configuration across all 79 EEG recordings achieved a 20.72% reduction in managed-copy storage, corresponding to a 10.36% reduction in the complete storage footprint when the preserved original EDF files are included, while preserving SHA-256 consistency and EDF readability for all validated recordings. Within the four-cycle comparative evaluation, the proposed stability mechanism reduced storage-state changes from 33 with immediate predictive to 11 with the proposed framework, corresponding to a 66.67% reduction, while eliminating repeated state transitions.
The rest of the paper is organized as follows. Section 2 presents the proposed framework and methodology. Section 3 describes the experimental setup and evaluation protocol. Section 4 presents and discusses the experimental results, and Section 5 concludes the study.

2. Materials and Methods

2.1. Predictive Agent-Based Architecture

The proposed framework integrates EEG profiling, predictive modelling, multi-objective decision-making, adaptive control and integrity-preserving storage operations inside a coordinated agent-based architecture. It aims to jointly select an appropriate lossless compression codec and storage tier for each newborn EEG recording, based on its data features, estimated codec performance, expected access behaviour and current storage state. The framework consists of seven functional agents coordinated by a separate stability-control mechanism, as shown in Figure 1. The seven agents are the EEG Profiling Agent, Codec Prediction Agent, Access Prediction Agent, Multi-Objective Decision Agent, Storage Agent, Integrity Agent, and Feedback Agent. The EEG Profiling Agent collects descriptive information from the original EDF recordings. The Codec Prediction Agent predicts for each potential codec the amount of storage reduction and the processing time. The Access Prediction Agent predicts the access behaviour for the next 24 h. The predictions are fed into the Multi-Objective Decision Agent, which examines the viable codec–tier combinations. The stability-control mechanism determines whether a recommended action should be confirmed, postponed, or rejected before physical execution. The validated decisions are then executed by the Storage Agent, confirmed by the Integrity Agent. Finally, the Feedback Agent logs the altered state and passes it to the next adaptation cycle.
Figure 1. Proposed predictive agent-based framework for adaptive lossless compression and tiered storage of neonatal EEG data.
In this work, the term “agent” refers to a specialized software component with a well-defined responsibility and an explicit interaction interface within the storage-management workflow. The architecture does not assume autonomous negotiation or independent learning among agents. Instead, the agent-based decomposition separates EEG profiling, prediction, decision-making, physical execution, integrity verification, and feedback into distinct functional components. The stability-control mechanism operates between decision-making and execution and is therefore not counted as an additional agent. The numbers 1–8 in Figure 1 denote successive workflow stages rather than eight functional agents. The prediction stage contains two specialized agents, whereas the stability-control block is a control mechanism and is not counted as an agent.
Compared with a monolithic implementation or a tightly coupled sequential pipeline, this architecture separates prediction and decision-making from operations that physically modify stored EEG objects. This separation allows execution and integrity verification to be controlled independently and enables communication failures to be handled through retry, duplicate-suppression, and feedback mechanisms.

2.2. EEG Profiling and Predictive Models

The profile step collects structural and statistical features from the original EDF file for each EEG recording. The descriptors are the original file size, byte-level entropy, zero-byte ratio, histogram entropy, lag-one autocorrelation, and pertinent metadata from EDF. They describe redundancy and regularity of the recording and are used by the predictive components. The storage alternatives investigated were no compression, gzip, bzip2, LZ4, Snappy and Zstandard. The Codec Prediction Agent predicts the compressed fraction, compression time, and decompression time for each EEG-codec combination. A linear regression model predicts the compressed fraction, and compression and decompression times are predicted by Random Forest regression models. These estimates enable comparison of potential codecs without physically recompressing every recording in each adaptation cycle. In parallel, the Access Prediction Agent predicts the number of accesses that will occur in the next 24 h using recent temporal access descriptors. The expected workload is also mapped to one of the three access classes, either HOT, WARM or COLD. Future access count is predicted by a regression model and access class is predicted by a Random Forest classifier. Frequently requested recordings are classified as HOT, recordings with intermediate activity as WARM and infrequently requested recordings as COLD.
The predictive component comprises five prediction targets organized into two groups. Codec-performance prediction includes compressed-size fraction, compression time, and decompression time, whereas access prediction includes the 24 h access count and the HOT/WARM/COLD access class. Linear regression is used for compressed-size fraction and access-count prediction, Random Forest regressors are used for compression and decompression times, and a Random Forest classifier is used for access-class prediction. Codec-performance models rely on structural and statistical EEG descriptors, while access models use recent temporal access descriptors. We chose linear regression for predicting the compressed-size fraction and the 24 h access-count because both of these are continuous targets, and linear regression offers a straightforward, computationally efficient, and interpretable model. We used Random Forest regression to predict compression and decompression time, since the processing overhead might depend on non-linear interactions between EEG characteristics and codec type. We chose Random Forest classification to predict HOT/WARM/COLD access due to its ability to capture nonlinear relationships among temporal workload features, its minimal preprocessing requirements, and its suitability for the moderately sized tabular dataset used in this study. For codec-performance prediction, the Random Forest regressors used 300 trees, a maximum feature fraction of 0.8, a minimum leaf size of 1, and a fixed random seed of 42; the remaining tree-depth parameters were left at their default unrestricted values. Linear regression was used without additional regularization for compressed-size prediction. For access prediction, the selected 24 h access-count model was linear regression, while the access-class Random Forest used 180 trees, a maximum depth of 20, a minimum leaf size of 3, square-root feature sampling, balanced-subsample class weighting, and a random seed of 42.
The decision agent combines the output of both predictive components. Thus, the codec selection is based not only on the predicted storage reduction but also on the processing overhead and the future retrieval needs of each EEG recording.

2.3. Multi-Objective Adaptive Decision Model

The framework jointly selects a compression codec and a storage tier. For EEG recording i, a candidate action is defined as:
a i , t = code c i , t , tie r i , t
where codec{i,t} represents the selected codec and tier{i,t} denotes one of the FAST, STANDARD, or ARCHIVE tiers. Each feasible action is evaluated using the following normalized multi-objective score:
J a = w s S a + w c C a + w d D a + w l L a + w m M a + w p P a
where S(a) is the storage cost, C(a) the compression overhead, D(a) the decompression overhead, L(a) the relative access-latency cost, M(a) the migration or reconfiguration cost, and P(a) is the penalty for mismatch between the anticipated access class and the chosen tier. The weighting scheme is different for the different predicted access classes. For HOT recordings, more weight is given to latency and decompression efficiency. Storage minimization is key for COLD recordings. WARM recordings are treated with a more balanced compromise.
The class-specific weights were fixed as design parameters and not learned from the data. For HOT recordings the weights for storage, compression, decompression, latency, migration and tier mismatch were 0.10, 0.10, 0.25, 0.35, 0.10 and 0.10, respectively. For the WARM recordings the respective weights were 0.30, 0.15, 0.20, 0.15, 0.10 and 0.10. For COLD recordings, these values were 0.55, 0.15, 0.10, 0.05, 0.10 and 0.05. Hence the weight vectors of the classes amount to one. These numbers are justified to capture the desired operational priorities, i.e., retrieval latency and decompression efficiency for HOT data, balanced compromise for WARM data and storage economy for COLD data. To make heterogeneous criteria comparable, we have independently normalized the storage, compression-time, decompression-time, and migration terms inside the [0, 1] interval by min–max normalization over the potential codec–tier actions for each EEG recording. The relative tier values, 0.05, 0.35 and 1.00 for FAST, STANDARD and ARCHIVE, directly modelled the access-latency term, and the tier-mismatch penalty was similarly set on a limited [0, 1] relative scale.
The action with the lowest score is chosen as:
a i * = arg min a ∈ A i J a
where Ai denotes the set of feasible actions. The expected benefit of replacing the current state si with the recommended action is calculated as:
Delta J i = J s i − J a i *
The advice is not implemented immediately. The adaptive controller requires two successive confirmations, at least an estimated gain of 0.005 and a cooldown of two cycles. These strategies avoid wasteful recompression, migration, and repetitive adjustments due to short-term prediction variations.
These precautions are a practical stability control policy for the adaptive storage mechanism. Consecutive confirmation eliminates temporary recommendations, the minimum-gain criterion prevents marginal predicted benefit adjustments from being executed and the cooldown period precludes rapid successive reconfigurations. Together, these approaches control codec–tier reconfiguration and limit the chance that ephemeral prediction changes cause needless recompression, migration, restoration, and integrity-verification activities.
The joint codec–tier selection procedure is summarized in Algorithm 1.
Algorithm 1. Joint Codec–Tier Selection
  Input: EEG recording xi, current state si, codec set 𝒞, tier set 𝒯.
  Output: Recommended action ai* = (ci*, ti*) and expected gain ΔJi.
1 Extract EEG features fi from xi.
2 Predict future access count and class (Âi, ŷi).
3 for each codec c ∈ 𝒞 do
4 Predict compression ratio and processing times.
5 for each tier t ∈ 𝒯 do
6 if (c, t) satisfies technical then
7 Compute the multi-objective score J(c, t).
8 end if
9 end for
10 end for
11 Select ai* = arg min J(c, t); compute ΔJi = J(si) − J(ai*);
     return ai*, ΔJi.

2.4. Execution, Integrity, and Feedback for Storage

When a recommendation meets the stability conditions, the Storage Agent decides the necessary physical operation. The operation can be a compression, decompression, recompression, tier migration, or a combined codec and tier change depending on the difference between the present state and the intended state. The FAST tier is optimized for fast access, the STANDARD tier offers a compromise between quick access and size reduction, and the ARCHIVE tier is for compressed recordings that are rarely viewed. In the experimental implementation, these tiers are logical storage classes mapped to the same physical storage support. So, their latency disparities are described with relative cost characteristics and not with measurements from physically different devices. Accordingly, the reported access-latency results should be interpreted as relative model-based costs rather than hardware-measured latency gains. In a deployment using heterogeneous storage devices, the FAST, STANDARD, and ARCHIVE tier parameters would need to be calibrated from empirical measurements of device-specific access latency, throughput, storage cost, and migration overhead, while the same multi-objective decision process could then be applied using these measured values. To prevent cumulative transformations, each new managed item is created from the original EDF recording rather than from a previously compressed copy. The target object is restored briefly after the procedure and compared to the original file with SHA-256. The recovered recording is accessed to check EDF readability as well. The action is accepted only if both integrity checks pass.
The original EEG recording is never changed or deleted. The obsolete managed copy is only erased if the newly produced target is validated successfully. If a matching valid target object is already available, it is reused, without unnecessary execution. Once validated, the Feedback Agent records the chosen codec, storage tier, execution status, resulting size, integrity result and cooldown state. This revised knowledge forms the basis of the next adaptation cycle. Communication between agents also has retry and de-duplication methods. Retry handling recovers jobs that are affected by temporary message loss, and deduplication prevents the same logical storage action from being conducted more than once. The mechanisms give exactly once behaviour in the local fault-injection simulation examined.
The adaptive confirmation and safe execution procedure is summarized in Algorithm 2.
Algorithm 2. Adaptive Confirmation and Safe Execution
         Input: Recommended action ai*, current state si, expected gain ΔJi, history Hi, cooldown qi, threshold τ, and required confirmations Nconf.
         Output: Updated storage state, execution status, and validation result.
if ai* = si then return KEEP.
if ΔJi < τ then return HOLD_LOW_GAIN.
if qi > 0 then decrement qi and return HOLD_COOLDOWN.
Update the consecutive-confirmation counter.
if confirmations < Nconf then return WAIT_CONFIRMATION.
Execute the required compression and/or migration.
Restore the target object and verify SHA-256 equality.
Verify EDF readability of the restored object.
if both checks succeed then
Update the state, activate cooldown, and record the action.
else
Reject the target and preserve the previous valid state.
end if Store the result and send feedback to the next cycle.

3. Experimental Setup

3.1. EEG Dataset and Compression Benchmark

The experimental validation was performed using the publicly available neonatal EEG dataset introduced by Stevenson et al. [26]. The dataset consists of multi-channel EEG recordings from 79 neonates admitted to the Neonatal Intensive Care Unit (NICU) at Helsinki University Hospital. The recordings were acquired between 2010 and 2014 using 19 electrodes positioned according to the international 10–20 system, with a sampling frequency of 256 Hz. The median recording duration was 74 min (interquartile range: 64–96 min). The EEG signals are provided in European Data Format (EDF), together with clinical information and seizure annotations independently produced by three experienced EEG experts. The complete set of 79 EDF recordings was used in this study. This dataset was selected because it provides publicly available, real-world neonatal EEG recordings in a standardized biomedical signal format, enabling reproducible evaluation of compression algorithms while preserving the structural characteristics of authentic multi-channel EEG data. Its variability in signal content and the presence of technical and biological artefacts typical of clinical NICU recordings also make it well suited for evaluating the robustness of adaptive storage and lossless compression strategies.
Each recording was checked for accessibility and EDF readability before processing, and a SHA-256 fingerprint was generated as a reference for subsequent integrity verification. The evaluated storage representations included the original uncompressed file and five lossless codecs: gzip, bzip2, LZ4, Snappy, and Zstandard. Each storage representation was executed three times for each EEG recording to minimize the influence of isolated runtime fluctuations, resulting in a total of 1422 benchmark experiments. For each run, we recorded the compressed size, compression time, decompression time, and compressed fraction. SHA-256 was used to compare the reconstructed files with the original recordings. The reconstructed files were also reopened as EDF files to verify structural readability.
The codec prediction dataset was constructed at the EEG–codec level. To prevent information leakage, the recordings were split into training, validation, and test subsets containing 55, 12, and 12 EEG recordings, respectively, rather than splitting individual benchmark runs. This 55/12/12 split was performed at the EEG-recording level and was used to evaluate the codec-performance prediction models. The 12 EEG recordings assigned to the test subset were not used during model training or validation. Therefore, the reported codec-performance metrics for these recordings represent out-of-recording evaluation within the current cohort. Next, the entire set of 79 EEG recordings was employed to evaluate system-level performance in terms of codec–tier selection, physical execution, integrity verification, baseline comparison, and adaptive control. The independent codec-performance model test set consisted of 12 distinct recordings; however, the system-level evaluation reused the full cohort, including recordings that had contributed to model development. Consequently, the codec-performance metrics reported on the 12 held-out EEG recordings represent out-of-recording evaluation, whereas the access-prediction metrics are based on a temporally held-out test period within the same recording cohort, as described in Section 3.2. The complete framework evaluation should therefore be interpreted as a proof-of-concept system assessment and may be subject to optimistic in-sample bias. The current study therefore does not provide a fully independent estimate of system-level generalization. External validation on independent EEG recordings and workloads is required to determine the generalizability of the complete framework.
Structural and statistical descriptors extracted from the original recordings were used as predictive variables. A linear regression model was used to predict the compressed fraction, whereas Random Forest regressors were used to estimate compression and decompression times.

3.2. Workload Access and Adaptive Evaluation

Real hospital access logs were not available, so a reproducible synthetic workload was generated to represent heterogeneous access patterns over 60 days. The workload includes the 79 EEG traces with a resolution of one hour and consisted of 113,760 temporal observations and 12,533 access events. At the beginning, 16 recordings were labelled HOT, 24 WARM and 39 COLD. After 30 days, a controlled workload drift was added to test the ability of the proposed framework to react to changing access behaviour. This drift caused 10 recordings to change their initial access class.
The workload generator used a fixed random seed of 42. The baseline access events were created from hourly Poisson processes with mean rates of 0.35, 0.08 and 0.01 accesses per hour for HOT, WARM and COLD recordings correspondingly. Temporal variability was incorporated using calendar-dependent multipliers: 1.50 for 08:00–18:00, 1.00 for 18:00–23:00 and 0.45 overnight, and workday and weekend multipliers of 1.20 and 0.70, respectively. Short access bursts were generated with a chance of 0.0015 every recording-hour, had a duration of three hours, and increased the access intensity 10 times. At day 30, five HOT recordings were exchanged with five COLD recordings to simulate a controlled concept drift. Chronologically, the 60-day trace was split into 42 days of training, 9 days of validation, and 9 days of testing.
For access prediction, the split was performed at the temporal level rather than at the EEG-recording level. The same set of 79 EEG recording identities was represented across the 60-day synthetic workload, with the first 42 days used for training, the following 9 days for validation, and the final 9 days for testing. Therefore, the access-prediction test period was temporally held out and preserved temporal causality, but it was not independent at the EEG-recording level. The corresponding access-prediction metrics should thus be interpreted as out-of-time performance within the same recording cohort rather than as performance on previously unseen EEG recordings.
The prediction horizon was set to 24 h and the workload was split chronologically into training, validation and test periods so as not to violate temporal causality. A regression model estimated the number of accesses in the future. A Random Forest classifier assigned each recording to the expected HOT, WARM or COLD class. The synthetic workload was designed as a controlled scenario for evaluating prediction and adaptation under heterogeneous and time-varying access demand rather than as a calibrated model of actual hospital access behaviour. Because real clinical access logs were unavailable, the generated patterns were not fitted to specific clinical workflows such as bedside review, retrospective research access, or machine learning dataset reuse. Accordingly, this experiment evaluates the internal behaviour of the adaptive storage framework under reproducible access scenarios rather than its clinical deployment performance. Accordingly, the system-level evaluation presented in this study should be interpreted as a proof-of-concept assessment under controlled experimental conditions rather than as a validation of real-world hospital deployment performance.
The experiment was executed via four successive decision cycles of the adaptive storage. In each cycle, the framework revised the codec-performance and access forecasts, assessed the viable codec–tier combinations, and enforced the stability-control criteria before approving a physical change. The FAST, STANDARD, and ARCHIVE tiers were implemented as logical storage classes on the same physical device. Thus, their access characteristics were modelled as relative latency and storage-cost parameters instead of measurements of different hardware devices. The four-cycle evaluation was designed to examine short-term adaptation and stabilization behaviour under reproducible conditions. It should not be interpreted as evidence of long-term operational behaviour, which requires substantially longer evaluation under continuous real-world workloads.

3.3. Baselines and Evaluation Protocol

All comparative results presented in this study were obtained experimentally and were not taken from the literature. All reference strategies and the proposed framework were evaluated under identical experimental conditions using the same 79 neonatal EEG recordings, the same codec benchmark measurements, the same synthetic access workload, and the same four adaptive decision cycles.
The proposed agent-based framework was evaluated against four reference policies. The first policy kept all recordings uncompressed in the STANDARD tier. The second compressed all recordings using Zstandard at the same tier. The third used a static codec–tier setup associated with the HOT, WARM or COLD class. The fourth picked and instantly applied the anticipated lowest-cost action without confirmation, minimum-gain filtering, or cooldown control. The reference techniques were picked to isolate the contribution of the primary design features of the proposed framework. Standard–None is a baseline configuration without compression and adaptation. Standard–Zstd tests a preset compression policy uniformly, without access-aware modification. The static HWC is a deterministic codec–tier policy, which is based on the access classes HOT/WARM/COLD. Immediate predictive employs the same predictive models and joint multi-objective decision function as the proposed framework but immediately applies each recommended codec–tier transition in the computational evaluation, without consecutive confirmation, minimum-gain filtering, or cooldown control. This combination of baselines allows to evaluate uniform compression, access-aware tiering, predictive joint optimization and stability-controlled adaptability separately.
The initial codec–tier configuration was established before the four-cycle comparative evaluation and was not included in the storage-state-change counts reported in the comparative results. All evaluated strategies were subsequently initialized from this same physical storage state. Therefore, the state-change counts in the comparative results represent only changes occurring during the four adaptive decision cycles. A state change was counted whenever the selected codec, storage tier, or both differed from the state at the beginning of the corresponding cycle; KEEP decisions were not counted. For the fixed Standard–None and Standard–Zstd strategies, the changes observed during the first adaptive cycle correspond to one-time transitions from the common starting state to their fixed target configurations, after which no additional workload-driven changes occurred. Immediate predictive and the proposed framework were also initialized from the same common state and used the same predictive models and multi-objective decision function. Across the four-cycle evaluation, immediate predictive generated 33 storage-state changes, whereas the proposed framework generated 11 confirmed storage-state changes. Thus, these values describe short-term adaptive behaviour after the initial physical configuration and do not include the initial deployment of the 79 EEG recordings.
The four-cycle trajectories used for the comparative evaluation in the comparative results were evaluated computationally under the same measured codec-performance data and synthetic access workload. The baseline strategy changes, including the 33 changes reported for immediate predictive, were therefore comparative simulated storage-state transitions and were not physically executed on the EEG files. For the proposed framework, the 11 confirmed storage-state changes identified during the adaptive evaluation were subsequently physically executed on the managed EEG objects and validated by SHA-256 consistency and EDF readability checks.
The proposed technique used the same predictive decision model as the instantaneous policy, but required two consecutive confirmations, with a minimum predicted gain of 0.005 and a cooldown period of two cycles. This comparison allowed us to disentangle the effect of the stability mechanisms from prediction models. The solutions were evaluated based on normalized multi-objective cost, regret in relation to the minimum expected cost, managed-copy storage savings, relative access latency, number of storage-state changes and repetitive state changes. Relative access latency was calculated as the access-count-weighted mean of the normalized tier-latency values, i.e., the sum of the predicted access count multiplied by the relative tier latency divided by the total predicted access count. Integrity-related findings included SHA-256 consistency, EDF readability, and preservation of the original recordings. An ablation study was also performed by deleting the consecutive confirmation, minimum-gain threshold, cooldown control and access awareness one by one. A fully instantaneous setup, where all stability safeguards were disabled, was also examined. A dedicated sensitivity analysis was also conducted for the multi-objective weights. Each of the six criteria was independently perturbed by −20%, −10%, +10%, and +20%, with the resulting class-specific weight vectors renormalized to sum to one. In addition, 200 Monte Carlo scenarios per constraint policy were generated by independently multiplying each criterion weight by a random factor uniformly sampled between 0.80 and 1.20, followed by renormalization. This analysis was used to assess the stability of codec–tier decisions with respect to moderate variations in the predefined weights.
Statistical comparisons were undertaken at the EEG level to control for the four repeated decision cycles linked to each recording. The overall comparison of the examined strategies was performed by means of the Friedman test followed by the paired Wilcoxon signed-rank tests with Holm correction. Kendall’s W was reported as a measure of effect size and confidence intervals were estimated using 10,000 bootstrap resamples clustered by EEG recording. The reported 95% cluster-bootstrap confidence intervals were not adjusted for multiple comparisons and should therefore be interpreted as descriptive uncertainty intervals. Multiplicity correction was applied to the pairwise p-values using the Holm procedure. Finally, a deterministic local fault injection experiment was carried out to test the durability of the communication mechanisms of the agent-based architecture. Test scenarios comprised dependable delivery, transitory message loss, duplicate delivery, mixed communication faults with resilience methods, and mixed faults without resilience. We looked at four workload scales and five repeats, which gave us 100 simulation runs. The largest configuration had 790 replicated EEG workloads and 3160 EEG-cycle tasks. Metrics collected include completion rate, exactly once execution, data integrity, retry activity, duplicate suppression, and logical processing lag. The experiment assessed software-level resilience under increasing simulated workload sizes rather than the scalability or performance of a physically distributed storage deployment.

4. Results and Discussion

Initially, the predictive models were assessed to establish if their estimations were precise enough to enable the joint codec–tier choice process. The predictive models were evaluated using two different forms of data separation, as summarized in Table 1. Codec-performance models were evaluated on 12 EEG recordings that were excluded from training and validation, whereas access-prediction models were evaluated on the chronologically held-out final 9 days of the synthetic workload using the same recording cohort. For predicting the compressed-size fraction, the linear regression model reached a R2 of 0.9796, an MAE of 0.0216, and an RMSE of 0.0310. This finding suggests that the structural and statistical EEG characteristics explained much of the heterogeneity in lossless compression performance.
Table 1. Predictive performance of the codec and access models.
The Random Forest models trained to estimate the processing overhead obtained R2 values of 0.8054 and 0.8508 for the compression and decompression time, respectively. The equivalent MAE values are 0.5400 s and 0.2764 s, respectively. The models were not as accurate in predicting runtime as in predicting compressed size, but they were still discriminative enough to evaluate codecs by their estimated computational cost.
The 24 h access-count model gave a R2 of 0.6847 and a 17.58% improvement in error reduction vs the persistence baseline. The accuracy, balanced accuracy and macro-F1 score of the access-class classifier are 75.55%, 77.24% and 0.7608, respectively. It outperformed the baseline classifier by 0.0746 in macro-F1. Thus, access behaviour was harder to predict than compression performance. Compression is mostly based on the relatively unchanging inherent features of the EEG data, but access frequency can change over time and is influenced by variations in workload. The access models, however, provided adequate discriminability between HOT, WARM and COLD recordings to facilitate access-aware storage options. The excellent accuracy attained for compressed-size prediction is especially relevant as storage reduction forms a substantial component of the multi-objective score. This estimate is complemented by the processing-time and access models, which avoid the framework of selecting a codec only based on its compression efficiency. Hence, the choice procedure can take into consideration both the storage reduction and retrieval needs anticipated for each recording. These access-prediction metrics should be interpreted as performance on the controlled synthetic benchmark rather than as estimates of predictive accuracy for real hospital access behaviour. Their purpose in this study is to assess whether the adaptive framework can respond consistently to heterogeneous and changing access demand under reproducible experimental conditions. Accordingly, the access-prediction results should be interpreted as temporally held-out performance within the same EEG cohort and not as an independent evaluation on previously unseen EEG recordings. In contrast, the codec-performance metrics were obtained from 12 recordings excluded from model training and validation.
The predictions were then validated by actually implementing the selected codec–tier setups. As shown in Figure 2, The first storage plan assigned eight EEG recordings to the FAST tier, 62 to STANDARD and nine to ARCHIVE. For codec choices, 50 recordings were recorded uncompressed and 29 recordings were stored using Zstandard. Although all five lossless codecs and the uncompressed representation were included in the candidate decision space, the initial optimization selected only the uncompressed and Zstandard representations under the tested workload and objective settings. The remaining codecs were therefore evaluated but did not achieve the lowest multi-objective score for any recording in this experiment. This outcome indicates that practical codec diversity was limited in the present dataset and that the experimental evidence more strongly supports adaptive compression-versus-no-compression selection than selection among multiple compressed codecs. The relatively large number of uncompressed selections should be interpreted in the context of the multi-objective formulation. Storage reduction is only one component of the decision score, together with compression and decompression overheads, access-latency cost, reconfiguration cost, and access-tier mismatch penalties. Therefore, an uncompressed representation can be preferred when the expected processing or access costs of compression outweigh its storage benefit. Because codec–tier selection depends jointly on all objective components, the observed preference for uncompressed or Zstandard representations should not be attributed to any single weight. A dedicated sensitivity analysis was therefore performed by systematically and randomly perturbing the predefined weights to evaluate the stability of the resulting decisions.
Figure 2. Distribution of the selected storage tiers and codecs across the 79 neonatal EEG recordings.
Under the feasibility policy used by the original decision engine, the codec–tier selections were highly stable under moderate weight perturbations. Across the 24 one-at-a-time scenarios with ±10% and ±20% perturbations, only 1.95% of the 79 codec–tier decisions changed on average, corresponding to 1.54 recordings per scenario and a mean decision-retention rate of 98.05%. Across the 200 Monte Carlo scenarios in which all criterion weights were independently perturbed within ±20%, 4.28% of the decisions changed on average, corresponding to 3.39 recordings per scenario and a mean decision-retention rate of 95.72%. The mean objective-function value remained close to the baseline value of 0.223572, with values of 0.223487 for the deterministic perturbations and 0.223677 for the Monte Carlo scenarios. The maximum relative deviation of the scenario-level mean objective value from baseline was 4.05% and 7.69%, respectively, while the mean test regret under the Monte Carlo perturbations remained low at 0.002875. These results indicate that moderate weight uncertainty produced only limited changes in codec–tier selection and only small variations in the objective-function values under the tested perturbations. These sensitivity-induced changes represent recomputed decision selections and were not physically executed storage adaptations. For this initial configuration across all 79 EEG recordings, the predicted managed-copy storage saving was 20.70%, while the physically measured managed-copy storage saving was 20.72%, a difference of only 0.02 percentage points. The latter corresponds to a 10.36% reduction in the complete storage footprint when the preserved original EDF files are included.
This strong agreement suggests that the anticipated compressed fractions correctly captured the extent of storage reduction during physical execution. All 79 managed EEG objects were correctly generated and validated. The SHA-256 fingerprint of each reconstructed recording was the same as that of the original EDF file and all reconstructed files were readable using the EDF validation technique. The original recording was left intact. The results obtained in the tested experimental setting show that the proposed framework can perform compression and tier-placement decisions while preserving data integrity. In the adaptive phase, 11 recommendations met the confirmation, minimum-gain and cooldown conditions. These activities were eight migrations from STANDARD to FAST, two Zstandard compressions in the STANDARD tier and one migration of a Zstandard-compressed recording from ARCHIVE to STANDARD. All 11 operations were successful, with 100% SHA-256 consistency and EDF readability. Considering only the recordings affected by the 11 executed adaptive operations, the resulting managed-copy storage saving was 15.52%. When the preserved original EDF files are also included, this corresponds to a 7.76% reduction in the complete storage footprint for the same adaptive-operation subset. This value refers only to the recordings affected by the executed adaptive operations and should therefore not be interpreted as the full-dataset managed-copy storage saving reported for the initial configuration. For medical recordings, the implementation of the integrity-preserving process is extremely critical. A new managed object was accepted only on successful restoration, hash verification and EDF readability testing. The old managed copy was only destroyed after validation of the new target. Thus, a failed compression or migration would not overwrite an existing valid recording.
Because the system-level comparison used the complete set of 79 EEG recordings, including recordings that contributed to codec-model development, the following framework-level performance comparisons should be interpreted as proof-of-concept results within the current cohort rather than as fully independent estimates of generalization. They may therefore be subject to optimistic in-sample bias.
The proposed adaptive strategy was then compared to the four reference storage policies. Table 2 summarizes the average results over the four decision cycles. The storage-saving values in Table 2 are policy-level averages across these four decision cycles; therefore, the 22.56% reported for the proposed framework is not directly equivalent to the 20.72% physically measured for the initial configuration.
Table 2. Comparative performance of the evaluated storage strategies.
For the 20.72% physical-execution result, managed-copy storage saving was computed over the complete set of 79 recordings as the reduction in the size of the managed EEG representations relative to the total size of the corresponding uncompressed EDF files. The preserved original EDF files were not included in this managed-copy saving metric. For the comparative evaluation, the same managed-copy accounting convention and the same full-dataset reference size were applied to all strategies at each decision cycle, and the 22.56% value reported for the proposed framework corresponds to the mean of these cycle-level managed-copy savings across the four cycles.
The storage-saving percentages reported above quantify the reduction in the managed EEG representation only and exclude the preserved original EDF files. Because the original recording is retained for all strategies, the corresponding reduction in the complete storage footprint is lower when both the original EDF and the managed copy are considered. Using the original EDF plus an uncompressed managed copy as the reference footprint, the 20.72% managed-copy saving corresponds to a 10.36% complete-footprint saving, while the 22.56% value reported for the proposed framework in Table 2 corresponds to 11.28%.
The immediate predictive method had the lowest multi-objective cost of 0.166299 and nearly 0% regret as it implemented the lowest cost advice in each cycle. However, this behaviour generated 33 simulated storage-state changes across the four decision cycles. The proposed agent-based framework achieved a multi-objective cost of 0.173158 and a regret of 0.004857, with 11 confirmed storage-state changes over the same four-cycle evaluation. Thus, within this experimental setting, the proposed stability-control mechanism reduced the number of storage-state changes by 66.67% relative to immediate predictive. Thus, the confirmation, minimum-gain, and cooldown processes eliminated proposals that did not have a high enough or steady enough projected benefit.
The storage-state-change counts in Table 2 refer exclusively to the four-cycle comparative evaluation conducted after the common initial physical codec–tier configuration had been established. The baseline counts represent simulated comparative storage-state transitions, whereas the 11 confirmed changes identified by the proposed framework were subsequently physically executed and validated. Accordingly, the reported 66.67% reduction refers only to the aggregate four-cycle comparison between the proposed framework (11 changes) and immediate predictive (33 changes) and should not be extrapolated to long-term operation.
To distinguish first-cycle reconfigurations from subsequent adaptations, the storage-state changes reported in Table 2 were further analyzed across the four decision cycles. Standard–None and Standard–Zstd generated 46 and 49 changes, respectively, during Cycle 1, with no subsequent changes. Static HWC generated 39 changes during Cycle 1 and 22 changes during Cycles 2–4, whereas immediate predictive generated 11 and 22 changes, respectively. The proposed framework generated no changes during Cycle 1, followed by nine changes in Cycle 2 and two in Cycle 3, with no further changes in Cycle 4. These results distinguish first-cycle transitions from subsequent adaptations within the four-cycle experimental setting.
The Standard–None policy had the highest cost and relative latency and resulted in no managed-copy storage savings. In contrast, the Standard–Zstd policy achieved the biggest managed-copy storage saving since all the recordings were compressed, regardless of their access behaviour. However, this uniform approach did not minimize decompression and access costs, showing that optimum storage reduction does not imply best overall configuration.
The static HOT-WARM-COLD policy obtained a low multi-objective cost and managed-copy storage savings of 36.15%. However, it produced 61 alterations, the largest number of all tested techniques. Its pre-defined mapping was not able to progressively stabilize the storage state when the access behaviour changed. The proposed technique obtained a managed-copy storage saving of 22.56% against 23.66% for the immediate predictive strategy, equal to a difference of about 1.10 percentage points. At the same time, it had the lowest relative latency, and generated fewer storage-state changes during the four-cycle comparative evaluation. Therefore, the proposed technique trades a minor increase in the expected cost and regret for higher operational stability. This trade-off is especially pertinent to EEG storage because each needless adaptation may entail recompression, file restoration, integrity verification, and physical data migration. Thus, the aim of the suggested framework is not to duplicate the instantaneous optimum at each cycle, but only to keep the recommendations that give a sufficiently steady and substantial improvement.
Ablation analysis identified the involvement of the stability-control elements. Table 3 shows the multi-objective cost, number of adaptations and repeated state changes following each component removal. The complete structure only required 11 adjustments and no recurring changes. The number of actions grew to 29 and 12 repeated modifications were made when the successive confirmation was removed, suggesting that the confirmation was the key mechanism responsible for screening short-lived recommendations. Removing the minimum-gain criteria had a minimal effect, raising the number of adaptations from 11 to 12 but without creating recurring alterations. In comparison, disabling the cooldown led to 14 modifications and three repeated adjustments. The quick predictive technique made 33 adaptations and 15 recurrent alterations with all stability mechanisms removed.
Table 3. Ablation results of the adaptive control mechanism.
The decreased cost achieved when the stability mechanisms were eliminated is a result of the immediate strategy’s ability to track the expected optimum at each cycle. However, this slight cost gain was accompanied by a substantially larger number of simulated storage-state changes during the four-cycle comparative evaluation.
Within the four-cycle comparative evaluation, the proposed framework reduced storage-state changes by 66.67% relative to immediate predictive and eliminated repeated state transitions. This reduction reflects short-term behaviour under the tested confirmation and cooldown settings and should not be interpreted as evidence of the same reduction during long-term operation. This trade-off was confirmed by a cluster-aware statistical analysis. Compared with the immediate predictive strategy, the proposed framework produced small but statistically significant increases in multi-objective cost and regret.
The mean multi-objective cost increased from 0.173158 to 0.185891 when access awareness was removed. This degradation was also statistically significant, demonstrating that access prediction was a relevant part of the codec–tier choice process.
The cluster-aware statistical analysis provided the following omnibus results across the evaluated strategies. The Friedman test was significant for multi-objective cost (χ2 = 94.237522, p = 1.655376 × 10−19, Kendall’s W = 0.298220), regret (χ2 = 105.776248, p = 5.787256 × 10−22, W = 0.334735), and managed-copy storage saving (χ2 = 211.191102, p = 1.472902 × 10−44, W = 0.668326). For access-weighted relative latency, the omnibus test did not reach the 0.05 significance level (χ2 = 7.885010, p = 0.095882, Kendall’s W = 0.024953).
In the direct comparison between the proposed framework and immediate predictive, the mean difference in multi-objective cost was 0.006859 (95% cluster-bootstrap CI: 0.003015 to 0.011399; Holm-adjusted p = 0.014909; rank-biserial correlation = 0.754386), while the regret difference was 0.004856 (95% CI: 0.002629 to 0.007334; Holm-adjusted p = 0.000393; rank-biserial correlation = 1.000000). The managed-copy storage-saving difference was −1.097367 percentage points (95% CI: −2.710798 to −0.138899; Holm-adjusted p = 0.067889; rank-biserial correlation = −1.000000), and the access-weighted relative-latency difference was −0.011314 (95% cluster-bootstrap CI: −0.027560 to 0.002776; Holm-adjusted p = 0.363488; rank-biserial correlation = −0.266667). Thus, after Holm correction, cost and regret differed significantly, whereas managed-copy storage saving and access-weighted relative latency did not. These nonsignificant differences should not be interpreted as evidence of equivalence or noninferiority between the proposed framework and immediate predictive, because no formal equivalence or noninferiority tests were performed. The reported effect sizes, confidence intervals, and Holm-adjusted p-values should therefore be interpreted jointly.
For the ablation without access awareness, the mean cost difference between the full framework and the no-access-awareness configuration was −0.012734 (95% cluster-bootstrap CI: −0.020890 to −0.005000; Holm-adjusted p = 0.020812), confirming the significant degradation observed when access information was removed. The results suggest that, within the four-cycle experimental setting, the proposed framework trades a modest degree of instantaneous optimality for greater short-term decision stability, as reflected by fewer storage-state changes and the absence of repeated state transitions. Consecutive confirmation prohibits temporary suggestions from being applied. Cooldown prevents an accepted storage modification from being rapidly reversed. Accordingly, the contribution of the stability-control layer is application-specific rather than control-theoretic: it adapts established anti-switching principles to the coupled codec–tier reconfiguration problem and quantifies their effect on storage-state changes under the controlled four-cycle evaluation.
The retry and deduplication mechanisms maintained task completion, exactly once execution, and data integrity at 100% for all tested workload sizes under mixed communication faults (Figure 3). At the maximum scale of 3160 EEG-cycle tasks, removing these mechanisms reduced completion to 68.14%, exactly once execution to 52.75%, and integrity to 72.23%. For the resilient configuration, logical processing latency increased from 5.20 ms to 6.71 ms, corresponding to an approximately 29% processing overhead while preserving complete task execution and data integrity. These results demonstrate resilience only within the deterministic local simulation used in this study. They should not be interpreted as evidence of distributed-system scalability, network-level communication reliability, or exactly once guarantees outside the tested environment. Validation of these properties requires deployment across physically distributed agents and storage nodes with measured network, concurrency, throughput, and failure behaviour. Within this controlled proof-of-concept evaluation, the proposed framework showed a favourable balance between managed-copy storage efficiency, model-based access cost, and operational stability. These results should not be interpreted as evidence of equivalent latency or reliability performance in a real distributed clinical deployment.
Figure 3. Evolution of task completion, exactly once execution, and data integrity under mixed communication faults with and without resilience mechanisms.
The initial selected configuration achieved a 20.72% physically measured reduction in managed-copy storage across all 79 EEG recordings, corresponding to a 10.36% reduction in the complete storage footprint when the preserved original EDF files are included, while preserving SHA-256 consistency and EDF readability.
For comparison with previous work, the same publicly available Helsinki neonatal EEG dataset has been used in several studies, mainly for seizure detection and EEG analysis. Caro et al. [27] used recordings from this dataset for multi-output Gaussian-process modelling, data imputation, and seizure classification. Mumenin et al. [28] used the dataset to develop an optimized XGBoost-based neonatal seizure detection framework. He et al. [29] evaluated a convolutional sparse transformer on the same dataset for seizure-monitoring applications, while Gomez-Quintana et al. [30] used all 79 recordings to investigate AI-assisted EEG interpretation through sonification. In contrast, the present study uses the same benchmark recordings to address a different data-management problem, namely adaptive lossless compression, predictive codec selection, tiered storage, and integrity-preserving execution. Therefore, a direct numerical comparison with these studies is not appropriate because they report clinical classification metrics such as accuracy, AUC, sensitivity, or F1-score, whereas the present work evaluates storage reduction, access latency, adaptation frequency, and data integrity. Nevertheless, the use of the same benchmark dataset provides a common experimental basis and highlights the complementary contribution of the proposed storage-management framework.
The practical storage benefit should also be interpreted in relation to the scale of the evaluated dataset. The recordings used here had a median duration of 74 min and therefore represent relatively small individual EEG objects compared with continuous multi-day clinical monitoring archives. Consequently, the measured 20.72% reduction in managed-copy storage, corresponding to a 10.36% reduction in the complete storage footprint, demonstrates the feasibility of the proposed storage-management strategy rather than a direct estimate of hospital-scale capacity savings. The potential operational value is expected to become more relevant when the same decision process is applied to larger repositories containing longer recordings, repeated examinations, synchronized signals, or associated video data.
The access workload, however, was synthetically generated; the storage tiers were implemented as logical classes on the same physical device, and resilience was evaluated through a local deterministic fault-injection simulation. Consequently, the reported access-prediction performance cannot be assumed to generalize to real clinical access patterns until the framework is validated using genuine institutional access logs. Thus, further validation should involve genuine hospital access logs, physically distinct storage tiers, larger EEG datasets, and a distributed deployment of the agent-based architecture. In addition, because the complete system-level evaluation reused all 79 EEG recordings, including recordings involved in predictive-model development, the framework-level results may be affected by optimistic in-sample bias and should not be interpreted as a fully independent estimate of generalization. Future validation should therefore use an independent EEG cohort, alternative workload scenarios, and multiple random seeds to assess the stability and generalizability of the reported system-level findings.

5. Conclusions

In this paper, we propose a predictive agent-based framework for the simultaneous selection of lossless compression codecs and storage tiers for neonatal EEG data. The suggested approach includes EEG profiling, codec performance prediction, 24 h access prediction, multi-objective decision-making, stability control, integrity verification, and feedback-driven adaptation. Unlike static storage rules, this system takes into account recording features and projected access behaviour to make decisions on compression or migration. Evaluation on 79 neonatal EEG recordings and 1422 codec tests demonstrated that the prediction models were accurate enough to allow combined codec–tier selection. Physically executing the initially selected configuration across all 79 EEG recordings reduced managed-copy storage by 20.72%, corresponding to a 10.36% reduction in the total storage footprint when including the preserved original EDF files, while preserving SHA-256 consistency, EDF readability, and the original recordings.
Within the four-cycle comparative evaluation, the stability mechanism reduced storage-state changes from 33 with immediate predictive to 11 with the proposed framework, corresponding to a 66.67% reduction, while eliminating repeated state transitions. This result characterizes short-term behaviour under the tested confirmation and cooldown settings and should not be extrapolated to long-term operation.
The ablation study showed the contribution of consecutive confirmation, cooldown control, and access awareness. Within the tested local fault-injection simulation, retry and deduplication mechanisms maintained task completion, exactly once execution, and data integrity under transient communication faults for workloads of up to 3160 EEG-cycle tasks. Overall, the present results establish the feasibility of the proposed framework as a proof of concept under controlled experimental conditions. They do not yet establish real-world access latency, long-term adaptation behaviour, or distributed-system reliability, which require validation with genuine hospital access logs, physically distinct storage tiers, longer operational evaluation, and distributed deployment. Future work will include validation on fully independent EEG recordings, evaluation under alternative access-workload scenarios and multiple random seeds, use of genuine hospital access logs, larger EEG datasets, physically separated storage tiers, distributed deployment of the agent-based architecture, and online adaptation of prediction models and decision weights.

Author Contributions

Conceptualization, A.S., F.Z.A., N.R. and J.A.; methodology, A.S.; software, A.S.; validation, A.S. and F.Z.A.; formal analysis, A.S.; investigation, A.S.; data curation, A.S.; writing—original draft preparation, A.S.; writing—review and editing, F.Z.A., N.R. and J.A.; visualization, A.S.; supervision, N.R. and J.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The neonatal EEG dataset analyzed in this study is publicly available and is described in Stevenson et al. [26]. The dataset consists of neonatal EEG recordings with seizure annotations from Helsinki University Hospital. The additional data generated during the experiments are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Pavel, A.M.; Mathieson, S.R.; Boylan, G.B. Neonatal seizure detection: A review of current methods, challenges and future directions. Clin. Epileptol. 2026, 39, 280–290. [Google Scholar] [CrossRef] [Scilit]
  2. Gonzalez-Tamez, K.; Montazeri, S.; Ågren, J.; Vanhatalo, S.; Hellström-Westas, L. Early outcome-prediction with an automated EEG background trend in hypothermia-treated newborns with encephalopathy. Pediatr. Res. 2026, 99, 710–717. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Fiammante, M.; Vermersch, A.-I.; Vidailhet, M.; Chavez, M. A simple EEG-based tool to guide therapeutic hypothermia decisions in neonatal hypoxic-ischemic encephalopathy. Comput. Methods Programs Biomed. 2026, 264, 109166. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Kota, S.; Kang, S.; Liu, Y.-L.; Liu, H.; Montazeri, S.; Vanhatalo, S.; Chalak, L.F. Prognostic value of quantitative EEG in early hours of life for neonatal encephalopathy and neurodevelopmental outcomes. Pediatr. Res. 2024, 96, 685–694. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Tuiskula, A.; Pospelov, A.S.; Nevalainen, P.; Montazeri, S.; Metsäranta, M.; Haataja, L.; Stevenson, N.; Tokariev, A.; Vanhatalo, S. Quantitative EEG features during the first day correlate to clinical outcome in perinatal asphyxia. Pediatr. Res. 2025, 97, 261–267. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Lagacé, M.; Montazeri, S.; Kamino, D.; Mamak, E.; Ly, L.G.; Hahn, C.D.; Chau, V.; Vanhatalo, S.; Tam, E.W.Y. Automated assessment of EEG background for neurodevelopmental prediction in neonatal encephalopathy. Ann. Clin. Transl. Neurol. 2024, 11, 3267–3279. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Cornet, M.-C.; Numis, A.L.; Wusthoff, C.J.; Bernardo, D.; Mietzsch, U.; Thomas, C.; Natarajan, N.; Ahmad, K.A.; Scheffler, A.; Juul, S.E.; et al. Automated EEG background analysis and 2-year outcomes in neonatal hypoxic-ischemic encephalopathy. JAMA Netw. Open 2025, 8, e2548321. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Twomey, L.; Gomez, S.; Popovici, E.; Temko, A. Long-term neonatal EEG modeling with DSP and ML for grading hypoxic–ischemic encephalopathy injury. Sensors 2025, 25, 3007. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Yu, S.; Marnane, W.P.; Boylan, G.B.; Lightbody, G. Neonatal hypoxic-ischemic encephalopathy grading from multi-channel EEG time-series data using a fully convolutional neural network. Technologies 2023, 11, 151. [Google Scholar] [CrossRef] [Scilit]
  10. Raurale, S.A.; Boylan, G.B.; Mathieson, S.R.; Marnane, W.P.; Lightbody, G.; O’tOole, J.M. Grading hypoxic-ischemic encephalopathy in neonatal EEG with convolutional neural networks and quadratic time–frequency distributions. J. Neural Eng. 2021, 18, 046009. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Pavel, A.M.; O’TOole, J.M.; Proietti, J.; Livingstone, V.; Mitra, S.; Marnane, W.P.; Finder, M.; Dempsey, E.M.; Murray, D.M.; Boylan, G.B.; et al. Machine learning for the early prediction of infants with electrographic seizures in neonatal hypoxic-ischemic encephalopathy. Epilepsia 2023, 64, 456–468. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Montazeri, S.; Airaksinen, M.; Nevalainen, P.; Marchi, V.; Hellström-Westas, L.; Stevenson, N.J.; Vanhatalo, S. An automated bedside measure for monitoring neonatal cortical activity: A supervised deep learning-based electroencephalogram classifier with external cohort validation. Lancet Digit. Health 2022, 4, e884–e892. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Rubinos, C.; Alkhachroum, A.; Der-Nigoghossian, C.; Claassen, J. Electroencephalogram monitoring in critical care. Semin. Neurol. 2020, 40, 675–680. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Amer, N.S.; Belhaouari, S.B. EEG signal processing for medical diagnosis, healthcare, and monitoring: A comprehensive review. IEEE Access 2023, 11, 143116–143142. [Google Scholar] [CrossRef] [Scilit]
  15. Das, S.; Kyal, C. Efficient multichannel EEG compression by optimal tensor truncation. Biomed. Signal Process. Control 2021, 68, 102749. [Google Scholar] [CrossRef] [Scilit]
  16. Fujihashi, T.; Koike-Akino, T. Graph-based EEG signal compression for human–machine interaction. IEEE Access 2024, 12, 1163–1171. [Google Scholar] [CrossRef] [Scilit]
  17. Jacobsson, M.; Seoane, F.; Abtahi, F. The role of compression in large scale data transfer and storage of typical biomedical signals at hospitals. Health Inform. J. 2023, 29, 14604582231213846. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Idrees, S.K.; Idrees, A.K. New fog computing enabled lossless EEG data compression scheme in IoT networks. J. Ambient Intell. Humaniz. Comput. 2022, 13, 3257–3270. [Google Scholar] [CrossRef] [Scilit]
  19. Woltmann, L.; Damme, P.; Hartmann, C.; Habich, D.; Lehner, W. Learned selection strategy for lightweight integer compression algorithms. In Proceedings of the 26th International Conference on Extending Database Technology (EDBT), Ioannina, Greece, 28–31 March 2023; pp. 552–564. [Google Scholar] [CrossRef]
  20. Savva, G.; Kakoulli, E.; Herodotou, H. Machine learning-based caching and tiering in modern data storage systems: A survey. ACM Comput. Surv. 2026, 58, 295. [Google Scholar] [CrossRef] [Scilit]
  21. Ruan, L.; Bai, Y.; Li, S.; He, S.; Xiao, L. Workload time series prediction in storage systems: A deep learning based approach. Clust. Comput. 2023, 26, 25–35. [Google Scholar] [CrossRef] [Scilit]
  22. Xing, S.; Wang, Y. Proactive data placement in heterogeneous storage systems via predictive multi-objective reinforcement learning. IEEE Access 2025, 13, 117986–117998. [Google Scholar] [CrossRef] [Scilit]
  23. Bahrampour, S.; Rasouli, M.R.; Fathian, M. Adaptive hybrid storage and retrieval management in blockchain-IPFS systems: A multi-agent deep reinforcement learning approach. Clust. Comput. 2026, 29, 539. [Google Scholar] [CrossRef] [Scilit]
  24. Abueid, A.I. A decision tree-based cloud replication model for enhanced data management. Eng. Technol. Appl. Sci. Res. 2025, 15, 29580–29589. [Google Scholar] [CrossRef] [Scilit]
  25. Nunome, A.; Hirata, H. Adaptive Parameter Tuning for Constructing Storage Tiers in an Autonomous Distributed Storage System. Int. J. Networked Distrib. Comput. 2022, 10, 1–10. [Google Scholar] [CrossRef] [Scilit]
  26. Stevenson, N.J.; Tapani, K.; Lauronen, L.; Vanhatalo, S. A dataset of neonatal EEG recordings with seizure annotations. Sci. Data 2019, 6, 190039. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  27. Caro, V.; Ho, J.-H.; Witting, S.; Tobar, F. Modeling neonatal EEG using multi-output Gaussian processes. IEEE Access 2022, 10, 32912–32927. [Google Scholar] [CrossRef] [Scilit]
  28. Mumenin, K.M.; Biswas, P.; Khan, M.A.-M.; Alammary, A.S.; Nahid, A.-A. A modified Aquila-based optimized XGBoost framework for detecting probable seizure status in neonates. Sensors 2023, 23, 7037. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  29. He, Z.; Chen, L.; Xu, J.; Lv, H.; Zhou, R.-N.; Hu, J.; Chen, Y.; Gao, Y. Unified convolutional sparse transformer for disease diagnosis, monitoring, drug development, and therapeutic effect prediction from EEG raw data. Biology 2024, 13, 203. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  30. Gomez-Quintana, S.; O’Shea, A.; Factor, A.; Popovici, E.; Temko, A. A method for AI assisted human interpretation of neonatal EEG. Sci. Rep. 2022, 12, 10932. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.