Abstract
1. Introduction
Design & implementation Cloud infrastructure has radically
shifted how the designing and operation of computing infrastructure functions,
providing capabilities for applications to consume compute, storage, memory,
and networking resources on demand. The latest generation of Cloud-based
platforms is not a collection of solitary machines; rather, they are large
distributed systems consisting of distributed physical servers, virtual
machine, containers, storage units, network elements, orchestration tools,
databases, and applications. Henceforth, disruption of a layer can cascade to
other parts, and ultimately cause a service degradation. In essence, for
complex environments, infrastructure dependability has grown equal to the
system that monitoring infrastructure has to discover these latent threats
before they become readily observable. Given huge scales, it is not surpising
that infrastructures emit high volumes of information, much of which are noisy.
CPU utilization might spike because of workload demands, memory usage would
soar since of appropriate caching, throughput might also fluctuate, and latency
might briefly increase due to delays on a queuing process. Thresholds based
monitors, treating every datum in isolation, are inadequate in identifying if
an event is simply a short-term aberration or a genuine sustained deterioration
pattern. Furthermore, it is harder for these monitors to accurately identify
patterns composed of multiple moderate deviations of metrics. For example, a
slight elevation of CPU utilization associated with a increase of application
workload, error rates, restarts and latency may signify a much powerful
impending failure event compared with any single threshold infraction. Actual
production cluster data logs explain how cloud infrastructure requires
data-driven and statistical analysis. Google cluster data provide details about
system-resource utilization, machine availability, and any incidents, and the
more recent data also offers information about workloads and resource
management behavior. A25 million tasks (across 12,500 servers), with
significant noise and load variance, were reported to Google workloads and
their hosts in 2012; data that is key to formulating a failure predicting model
with high fidelity. In terms of traditional methods for dependability, it was
based on alarms, specific rules, past issue experiences, duplicate resources,
and rapid restitution. These tools are nevertheless relevant, but, for the
purpose of computing predicted probability of failure based on the existing
telemetry data stream, they may not fully fit. As one of the alternative
approaches, Machine-Learning models, given an adequate historical dataset of
measures and results, should make it feasible to assess whether a collection of
measures predicts future failures. Combined with the time elapsed since the
potential failure and operation-related consequences, a choice for mitigation
action can consequently be derived. The domain research related to
Cloudomaly-detection has included several methods such as statistics-based;
supervised learning; unsupervised learning; deep learning and combinations thereof
(hybrid). This systematic review on Cloud anomaly-detection identified a strong
link to dataset considerations; logs pre-processing methods, ML methods,
deep-learning methods, as well as automated error handling. The other works
focused on MLomaly-detection at the multi-cloud environment, Cloud, network
anomaly detection, and unsupervised methods, including methods for
explanations. Therefore, this anomaly-detection research area is active,
however a specific concern for predicting infrastructure failures rather than
simply anomaly-detection remains key.
Failure prediction is specifically challenging given its low
occurring rate in relation to the amount of usual operational hours of the
infrastructure. A classifier can reach high accuracy by simply predicting the
most common instance type and could miss many actual occurrences. For these
reasons, predictive failure-tracking mechanisms should focus on metrics such as
recall, precision, accuracy, F1-score, ROC-AUC and the precision-recall curve
rather than solely on accuracy. It’s reasonable to propose that loss is more
substantial when a crucial service experiences a false-negative event compared
to a false positive, and excessive false-positives may desensitize operators.
Another difficulty is the temporal dimension. It is more often the case that
anomalies precedes Cloud-failures. For that, you’d get longer evolution
periods, recurring error states, gradual increase of server burden and in sum
of several time-based events. Pointwise classifiers do not understand temporary
dynamics unless temporal information has been specifically embedded. Lagged
variables can assist in encoding temporal dependency. This presented work
employs time-series analysis on data logs (rolling-window engineered
characteristics) in connection with machine-learning techniques (ensemble
learning) and subsequent phase-tracking logic (temporal hazard status) to
prevent premature alarm false positives. In this document, we present the whole
ML-driven predictive approach for detection of malfunctions in cloud systems.
The research efforts are concentrated around Four main aspects: (1) Define a
comprehensive definition of multivariable telemetry integrating numerous
sources of metrics such as computing workload, workload memory usage, storage
I/O, network I/O, lag times, application mistakes, thermal values, restarts and
iostat outputs. (2) Design a Mathematical risk paradigm to quantify telemetry
and temporal input variables as an estimation of failure chances along with a
sustained hazard score. (3) (4) (d) Propose an algorithm separating
identification from alerts by utilizing temporal persistence to diminish
unnecessary false-positive alerts, and contrast (4) Our suggested model with
additional standard ML and sequential ML approaches using artificially created
data. The architecture suggested has been purposefully devised to function as a
convenient solution between the simplicity of traditional thresholding systems
(but without their poor feature interactions) and complex deep-sequence models.
While tree-based ensemble ML, which is comparatively simple to execute at infer
time, leverages temporal aspects to model nonlinear decision borders through
manually configured features, the extra security/hazard layer allows turning
classifier outcome-probabilities to system states, a crucial characteristic for
monitoring infrastructure. Hereafter, part II describes the proposed method,
which contains description of methodology, calculation formulas, prediction
algorithm, operation methodology, visualization of explanation for predictions
and data skewness-management. The experimental protocol, configuration, outcome
metrics, analysis and the results of comparative evaluation of our suggested
method and different other basic machine learning and sequence-based methods,
are elaborated in part III and the implementation related challenges,
usefulness and restrictions of the system are mentioned in part IV, whereas
part V covers conclusions along with potential follow-up study directions and
extensions in the future work. Cloud infrastructure reliance is being
researched for many complementary methods that includes infrastructure
management, scheduling of resources, identifying anomalies, tolerance of
failures, analyzing application-usage logs and the machine-learning-based
approaches to forecasting potential failures. The earlier studies of widespread
clusters have confirmed a wide range of system behaviors with the need for
adaptive management approaches [1]. The Borg system developed at Google provided
for mechanisms essential in managing large clusters – from admission control,
resource allocation, sharing to monitoring and failure resolution [3]. Later
Borg traces data revealed the extreme long-tail nature of workload
distributions, the considerable disparity of workload patterns from cluster to
cluster, and provided for the requirement of dynamic data analysis [4]. The
extensive cloud traces are extremely helpful in studying infrastructure actions
which aren’t feasible at normal test settings. These datasets contain not just
machine-event data and task resource usage, but in addition job-dependency
facts and CPU work- histograms [1, 2, 4]. While perhaps not developed as the
ideal data set to accurately predict failure instances, they do nevertheless give
a base in the experimental structure of the task. Machine Learning-based
Anomaly Detection provides a second area of study. Regression analysis,
classification, clusters, Support Machine, Support-Vector Machines, isolation
trees,Boosting, and neural networks are also commonly used in detecting
peculiar infrastructural actions. A system evaluation concentrated particularly
on anomaly detection at the Infrastructure level highlights the necessity of
working with relevant datasets, preparing thelogs, employing appropriate ML
techniques (deep learning included) and automating error handling [6].
Moreover, the experience report [10] indicates the effectiveness of monitoring
infrastructure actions by analyzing Cloud logs for normal operations and
detecting artificially embedded failures within an actual Cloud setup.
Supervised failure prediction has an important advantage when
reliable historical labels are available: the model can be optimized for a
specific operational event rather than for generic statistical abnormality. For
instance, recent work published by IEEE on large-scale data-center DRAM failure
prediction explored a decision-tree based method along with a public DRAM
failure dataset [11]. Such studies illustrate the value of focusing on a
specific failure mechanism.
However, cloud infrastructures feature multiple failure types, so an
overall framework should incorporate multiple telemetry sources and multiple
definitions of failure from operational data.
Unsupervised and semi-supervised methods come in useful when labeled
failures are sparse. Research in unsupervised anomaly detection in cloud
scenarios have analyzed joint detection and explanation [9]. An advantage of
this approach is that it can flag novel deviations without assuming a pre-collected
set of failure labels. The drawback is that a statistically abnormal operation
may not signal failure: workload unusual operations may be healthy, while
failures may occur in regions corresponding to average behavior.
Therefore, our system primarily leverages supervised failure labels
for its prediction task, whilst keeping anomaly-based features as possible
extensions.
Deep learning can offer an alternative. LSTMs and recurrent neural
network architectures can learn temporal patterns direct from sequences and
could be highly effective if failures involve long range dependencies. Recent
literature also compared machine-learning against deep learning for multi-cloud
anomaly prediction [12].
However, sequences models may be computationally more expensive to
train and can pose complexities related to sequences length, class imbalance,
missing observations and model drift. The prediction framework therefore
combines explicit temporal features and a light temporal risk accumulator along
with a non-linear ensemble classifier. Existing works highlight a practical
gap: while the majority literature focus on detecting anomalies or predicts a
specific component failure or evaluating machine learning classifiers,
operational ML for failure prediction further demands the transformation of
probabilistic predictions into robust alerts.
Such transformation involves the system considering the model
persistence, the cost of false positives (and negatives), data drift, explain
ability, and lead time.
Our system bridges this gap by tightly integrating these diverse
elements into an end-to-end predictive systefm. In essence, the system's
novelty not lie in the superiority of its underlying classifier, but rather an
interconnected predictive architecture where feature engineering, non-linear
prediction, temporal accumulation and a cost-conscious alerting are presented
as distinct but cohesive components. This de-coupling allows flexible
adaptation of any given classifier and fine-tuning of alert threshold as a
function of the application criticalities. Building on the aforementioned
literature on large-scale cluster behavior analysis, cloud anomaly detection
and machine learning-based failure analysis, the primary practical gap our
contribution identifies lies between statistically driven anomaly
identification and operationally relevant failure prediction.
While much research identify anomalies or focus on specific failure types, an end-to-end operational system should integrate diverse telemetry streams, capture the temporal degradation and be equipped with cost-effective alerts that allow persistence control, model drift adaption and explained decision.
II. PROPOSED METHODOLOGY
In the current system that is proposed, time-stamped infrastructure telemetry is collected by the system, which predicts the likelihood of a failure within some future time-horizon prediction. The system is built on the following component architecture: Telemetry collection, stream ingestion, Pre-processing, temporal feature engineering, Random-Forest Prediction, risk consolidation, alert generation, monitoring. The system was designed to be modular, allowing the source of the data, and, if desired, classifier or alarm policy to be modified without other components being affected.
Fig.
1. Proposed architecture for machine-learning-based predictive failure
detection.
At time t, the raw
telemetry vector is xt=[ct, mt, dt, nt, lt, et, qt, rt, wt]T, representing CPU
utilization, memory utilization, disk utilization, network utilization,
latency, error rate, temperature, restart count, and I/O wait. The metrics were
chosen because these represent disparate and complementary facets of the system
infrastructure stack: – CPU and memory capture the compute stress; disk and I/O
wait capture storage contention; network load and latency capture the network
load; error rate and restart count attempt to capture application- or
process-level stress; and temperature captures a very coarse abstraction of
hardware stress/health.
Raw telemetry cannot be supplied directly to the model without considering scale and distribution. Each variable is standardized using training-set statistics:
are calculated
only from the training partition. Extreme sensor artifacts can be clipped using
training-derived percentile limits, and missing values can be imputed using
robust training statistics. The use of training-only parameters prevents future
information from entering the model.
Temporal features are constructed over a
W-observation window. The rolling mean captures sustained
level, the rolling standard deviation captures volatility, and the linear slope
captures degradation
or recovery. Lagged values can also be included to represent delayed effects.
Interaction terms such as CPU×memory, latency×error rate, and restart×error
rate provide compact representations of conditions that may be more informative
jointly than individually.
The target variable is defined as Y(t+h)=1 if an infrastructure failure occurs within the prediction horizon h after time t, and zero otherwise. This definition converts the task from reactive anomaly detection into a forward-looking classification problem. The horizon should be selected according to the time required for an operator or automation system to take corrective action.
B.
Mathematical Prediction and Risk Model
where λ controls
memory, γ controls the persistence contribution, and St is the proportion of
recent windows whose probabilities exceed a warning threshold. This equation
makes a sustained sequence of moderate probabilities capable of producing a
warning even when no single observation is extreme.
Two thresholds are used. Tw represents the warning threshold and Tc represents the critical threshold. A critical alert is generated only when Rt ≥ Tc and the number of consecutive high-risk windows C_t is at least K. This mechanism is designed to suppress isolated spikes. The thresholds are selected on validation data using an operational cost function
where the terms
represent missed failures, false alarms, unnecessary actions, and detection
delay.
C.
Prediction Algorithm and Operational Workflow
Prediction and alerting workflow- The prediction and alerting pipeline takes raw and noisy telemetry data and produces a stable and actionable risk assessment. Though it is the underlying model that is predicting future failure probability, the workflow's job is to determine that such probability is stable and significant to trigger an alert. We can thus avoid triggering Critical incidents upon a single spurious observation! The entire workflow is explained below.
1. Ingest and Validate Telemetry- Telemetry is gathered from
Infrastructure Agents, monitoring exporters, application instrumentation, and
API of the platform at a fixed sampling interval. Data should also be stamped
with their timestamp, host (or service it belongs to) and metric name. Schema
validation-e.g. Do all necessary variables exist in this record, and are their
values within physically possible bounds (a value for CPU utilization could not
be >100, nor a latency value < 0)-must happen before the record hits the
prediction pipeline.
It is critical to perform timestamp validation too because
miss-ordered observations can break rolling window computations. Incorrect
records will be flagged, instead of silently processed by the model.
2. De-duplicate and Handle Missing / Invalid Data- There is sometimes more than one telemetry record for each observed measure, as the ingestion pipeline deals with probe retries, Monitoring Agent restarts, retransmissions over the network, overlapping data collection jobs, etc. This should be identified using the combination of timestamp, host, and metric name, and additionally a hash to prevent false negatives in case multiple data collection tasks report the same metrics. The data itself should be managed: how to handle messiness depends on metric and the length of its absence. Short gaps can be imputed based on forward filling, or local-robust statistics and short gaps can be marked explicitly with the help of in validness indicator' to not pollute the dataset and models. It is critical to filter out spurious measurements caused by sensor issues, parsers etc, because models trained on them can learn spurious characteristics of monitoring systems-not actual infrastructure health.
3) Standardize variables using training-set parameters. Cloud
telemetry variables have very different numerical scales. For example, CPU and
memory are percentages, latency may be measured in milliseconds, and restart
count is an integer. Each continuous feature is standardized using
z=(x−μ)/(σ+ε), where μ and σ are calculated only from the training data. Same
parameters are used in both validation and inference production. This guards
against using information about future observations (no future leakage), and
sets all variables for inspection on scales in the range expected by the
training data/model pipeline (which helps with trees although they aren't
extremely sensitive to this anyway as later distance models, linear models or
neural models will likely require them at same scale).
4) Calculate running means, differences, slopes, lagged features and chosen interactions. Precursor events on machines usually emerge as trends, rather than extreme values of single measurements. For example, a steady increasing level of lag for 10 windows of measurements can mean more than one such measure showing a higher lag. Rolling means approximate the current level of the local operating range, rolling differences approximate the local variation or instability, and slope can tell if the value is currently decreasing or increasing. Lagged values of a feature contain recent past information about that feature value. Interaction such as CPU I/O wait, memory latency and number of error rate restart, can present the effects of related stress factors or conditions, CPUI/O wait, memory latency, and error rate restart count. The width of the sliding window W, as used here should be related to the failure lead-time.
5) Apply the trained Random Forest to obtain p_t. The engineered feature vector is passed to the trained ensemble. Each decision tree produces a class decision, and the forest aggregates the tree outputs to obtain an estimated probability p_t that a failure will occur within the defined prediction horizon. The model is trained using class weighting or balanced sampling because failure observations are much less frequent than normal observations. The probability is not itself an alarm; it is the statistical estimate that becomes an input to the operational risk layer.
6) Update the
temporal risk state Rt and persistence counter Ct. The instantaneous
probability can fluctuate because telemetry is noisy. The risk state therefore
combines the current probability with the previous risk state using an
exponentially weighted update Here, λ determines how strongly previous risk is retained and St
represents recent persistence above the warning level. The counter Ct records
how many consecutive windows satisfy the high-risk condition. This mechanism
allows several moderate predictions to accumulate while reducing the effect of
a single isolated spike.
7) Issue a warning when Rt > Tw, where Tw is the early
observation state. When the state goes beyond Tw, the warning can notify an
operator, increase monitor rate, collect more diagnostics, or run a
non-intrusive automated check. A warning should never be as serious as a
critical state warning as the goal is to provide additional information for
additional head time, and not a recovery event.
8) The system generates a critical alert only when Rt exceeds Tc for
K consecutive windows, where the critical threshold Tc is greater than the
warning threshold, and the risk condition is met for K consecutive windows. The
two-condition policy minimizes risk due to occasional spikes in workload that
would otherwise trigger a critical alert prematurely; for instance, if a single
batch job spikes CPU for a brief interval but has no impact on its latencies,
error rates, or restarts, the risk may drop below the threshold before K
consecutive critical windows are encountered. However, sustained degraded
performance in several metrics satisfies both conditions and causes an alert.
9) Capture the prediction, model version, risk score, important features,
and the actual outcome. Each prediction will be recorded with its timestamp,
infrastructure identification, model version, Pt, Rt, thresholds, alert state
and explanation metadata. When the actual outcome is available it is associated
with the failure label to form a performance training data set to measure
accuracy, tune thresholds and retrain. It is also used to aid in incident
investigation, allowing operators to retrace what telemetry conditions lead to
what model giving what alert.
10) Retrain based on validated candidate model (not just feature drift) Automatically identify any feature drift and measure impact on performance, retraining only once a potential model can be validated As soon as predictions are available we continuously track Recent (telemetry) distribution vs (telemetry training distribution) And will also continuously track precision, recall, missed-alarms and true-alarms When labeled data arrives If feature drift detected train a candidate model on a fixed window of recent data For example If we see that number of errors for each worker is highly correlated now while that was not the case in training, maybe some of the assumptions that we made in modeling will no longer hold The candidate model will be required to meet specific operational metrics on a data set outside the training set (i e ,on a hold out period), before being eligible to replace the production model This adds an additional buffer zone and stops the system automatically retraining whenever there are very temporarily changes in workloads or even some polluted labels.
This workflow uses statistical prediction, as distinguished from operations escalation. Even if an observation receives a high probability in the model, the alert policy will evaluate that a single elevated score is not an adequate basis for taking disruptive action. This distinction is essential in a cloud context because transient spikes in metric data, driven by short workload bursts, schedule maintenance, auto scaling, or batch processing work, may look similar to metrics associated with precursors to failure
Fig. 2. Flowchart of the prediction algorithm and operational alert workflow
D.
Model Complexity, Explainability, and Drift
The implementation
of rolling-window features such as window means, standard deviations and slopes
also needs to be highly efficient. Instead of always re-computing these values
on the entire window for each observation, one can maintain and update incremental
sums and squared sums to calculate window means and standard deviations.
Similarly one can efficiently update window slopes. Given that feature
computation should take much less time than model inference, features might be
computed over a stream of events/observations and then served to the model. If
these features need to be computed in stream processing jobs (for example) one
can run this in distributed workers and let a centralized model-serving layer
execute model predictions.
Explain ability is
the requirement for the infrastructure operator to understand why the
prediction jumped and what to do. Global importance of features from the Random
Forest provides awareness of variables which generally contribute to predict
failure. Individual local explanations are required to reveal what actually
contribute for a specific prediction. SHAP-style explanations or methods based
on perturbation of feature values can generate such explanations. This allows
us to generate alerts like 'current risk is increased due to increased latency,
error rate, and number of restarts' which are not the causal reasons but
statistical associations and provide actions. Also explanations allow to
discriminate between actual system degradation and a potential problem with the
instrumentation. If after a release one of the features gains high importance
and has suddenly changed in data collection or format, the operators can focus
their attention to fixing the telemetry infrastructure rather than prematurely
assuming the infra is breaking.
Model drift: When
the statistical relationships between the telemetry and the failure occurrences
changes over time. Cloud is a very dynamic environment: new versions are
released, new workloads arrive and leave based on the season/business cycle,
hardware pieces are replaced and infrastructure management rules are updated.
All these facts may cause the relationship between infra-telemetry and failure
to change. Drift can be easily detected when comparing the distributions of
recent features and training features using metrics such as the Population
Stability Index, Jensen-Shannon divergence, or other suitable tests.
Performance Drift: It’s different from feature drift: The feature distributions
can change without any impact on the prediction quality, while performance may
decrease even though the marginal distributions of the features look stable.
Thus, we need to monitor for both. Once there are enough labels that become
available, we can also compute metrics like precision, recall, F1-score, FPR,
missed failure rate, and warning lead time over a moving window of recent
observations.
Managed retraining: Retraining should be managed and it must be controlled by a validation gate. Once drift or performance degradation is detected, a candidate model must be trained using a window of historical data. The candidate model is then compared with the existing production model and should replace it only if performance is better on a test set and it doesn’t violate any given performance constraints (e.g. Related to false alarms rate, computational costs, recall for critical services).
III. EXPERIMENTAL SETUP AND RESULTS
The experiment consists of evaluating the predictive capability of a latent variable based model over simulated telemetry data collected over a course of 6,000 observations with indexed times. This telemetry includes CPU utilization, memory utilization, disk utilization, network utilization, latency, error rate, temperature, restart count, and I/O wait. This simulated telemetry data set is characterized with the absence of true causal variables and the presence of temporal correlations between different features. In addition, A failure flag is constructed by discretizing a nonlinear latent hazard function. The threshold was selected to give an approximately 8% failure rate. The experiment is replicated under a fixed random seed for reproducibility. Since this data is synthetically generated, numerical results obtained below are intended for expositional purposes and are not considered to be representative of the system production behavior.
|
Feature |
Mean |
Std. |
Min |
Max |
|
cpu_pct |
58.14 |
16.88 |
5.00 |
99.00 |
|
memory_pct |
60.86 |
14.61 |
5.64 |
99.00 |
|
disk_pct |
48.59 |
18.10 |
3.00 |
99.00 |
|
network_pct |
42.95 |
17.68 |
1.00 |
99.00 |
|
latency_ms |
104.80 |
23.30 |
23.92 |
187.06 |
|
error_rate |
1.70 |
1.24 |
0.01 |
11.15 |
|
temperature_c |
53.30 |
4.35 |
37.52 |
69.09 |
|
restart_count |
0.18 |
0.43 |
0.00 |
3.00 |
|
io_wait_pct |
26.73 |
7.74 |
1.00 |
57.35 |
|
failure |
0.08 |
0.27 |
0.00 |
1.00 |
The simulated dataset contains 6,000 observations and 480 failure labels (8.0%). A chronological 70/15/15 split is used for training, validation, and testing. The chronological split is important because a random split can leak future operating behavior into training and produce overly optimistic results in time-dependent prediction tasks.
Fig. 3. Simulated cloud
telemetry trends used for the experimental demonstration.
The baseline models are Logistic Regression, Decision Tree, Random Forest, SVM with an RBF kernel, Gradient Boosting, and LSTM. The proposed method uses the Random Forest probability together with temporal risk aggregation and persistence-aware alerting. Hyper parameters are selected on validation data. The test set remains isolated until final evaluation
B. Evaluation Metrics
Accuracy is provided as a courtesy, but the rare failure class prohibits considering accuracy as the primary evaluation metric. Precision measures the proportion of generated alerts that relate to true failures. Recall indicates how many true failures are detected. These are combined in their harmonic mean, F1=2PR/(P+R). ROC-AUC reports the quality of ranking, averaged across decision thresholds. For production use, reporting False Alarms Per Day Of Operation, Mean Warning lead Time, Cost Of False Negative, and Detection Stability is encouraged.
C. Comparative Results
|
Model |
Accuracy |
Precision |
Recall |
F1 |
ROC-AUC |
|
Logistic Regression |
0.913 |
0.681 |
0.642 |
0.661 |
0.901 |
|
Decision Tree |
0.928 |
0.724 |
0.711 |
0.717 |
0.926 |
|
Random Forest |
0.958 |
0.802 |
0.783 |
0.792 |
0.963 |
|
SVM-RBF |
0.941 |
0.766 |
0.751 |
0.758 |
0.951 |
|
Gradient Boosting |
0.964 |
0.824 |
0.806 |
0.815 |
0.971 |
|
LSTM |
0.969 |
0.847 |
0.821 |
0.834 |
0.978 |
|
Proposed RF-Gated |
0.978 |
0.879 |
0.864 |
0.871 |
0.987 |
Fig. 4. Simulated ROC-AUC comparison of candidate
models.
Fig. 5. Simulated precision, recall, and F1
comparison.
Fig.6. Illustrative ROC curves for the simulated
experiment.
Logistic
Regression establishes a simpler baseline that cannot capture complex interactions
unless explicitly designed as features. Decision Tree, capable of Nonlinear
Behavior, is prone to specific partitions during training. Random Forest, by
averaging, smooths over variations. Gradient Boosting further tunes simulated
ranking performance by modeling sequentially: we sequentially optimize
predictions, modeling the residual patterns. While strong for the simulated
experiment-as real sequences were introduced to make the simulated data
nonlinear-our LSTM baseline results also introduce sequencing preparatory
procedures, a large model state and added training sophistication. The new
RF-Gated model has the top simulated ROC-AUC score and provides the optimal
simulated precision recall trade-off; interpret the advantage as an entirely
designed pipeline, rather than any indication of superiority of Random Forest
over deep learning approaches.
Furthermore,
the experiments show why accuracy alone is not good enough. Given ~8% positive
instances, a silly classifier that outputs "normal" most of the time
has near 100% accuracy and can't detect any failures. Therefore, our evaluation
method is focusing on recall, precision, F1 and ROC-AUC. When deployed in
practice, the threshold should be set to balance false alarms and misses based
on the impact of failures and false positives.
E. Recommended Ablation and External Validation
Failure
prediction should really be thought of as an operational decision problem, not
just a classification problem. The classification tells us probability of
future failure, but we need to decide when to take action, based on how likely
it is that we can keep intervening due to a persistent condition, and how
expensive the costs associated are of taking action versus suffering a failure.
The proposed architecture has the separating prediction and actions, so that
the predictive model can change over time, while actions stay fixed for a
service level target.
Our
feature representation consists of instantaneous and temporal statistics (such
as means, trends, deviations and interactions), since infrastructure
degradation, while generally driven by changes in the parameters, seems often
expressed as either a trend or sustained pressure rather than a single event.
An example feature would be slope. An example pair interaction would be the
ratio of CPU load on multiple different nodes that all go up and down together.
The feature space gives us the kind of relatively understandable interface that
is problematic for end-to-end models.
Our
random-forest-gated approach allows for reasonable model interpretability,
while still capturing interaction terms and non-linearities that an LSTM
approach doesn't really attempt to represent, though we also combine it with a
temporal risk accumulator. This means we don't need to explicitly store all
sequences for the trained model, and also let the decision of "when to
take an action" be decided separate from the prediction model - allowing
for easy retraining and tweaking according to service levels.
Several
assumptions about our data must be clarified; namely that our dataset is
simulated and can't, in and of itself, demonstrate generality against
production infrastructure. Additionally the simulation mechanism could
inadvertently favor specific models we evaluate it on; none the less, many
mechanisms, if omitted, will leave our models unable to perform well given conditions,
such as correlated events in hardware, network failures, configuration changes,
software bugs, storage failures.
The
other major assumption of this work is around data label quality. A real system
will very rarely label failures at the exact same time as the condition begins
to exist in the network. Rather there will be an operator intervention step
where the model predicts a fault, a human says it is real, and this is what is
logged. A proper experiment needs to carefully design its data label generation
such that such subtleties are accounted for, or that its output label is clear;
"start of degraded service level", versus "operator incident
acknowledged."
Future
research needs to validate this framework on production data, preferably from
different service levels and types, and try and measure the useful lead time
provided by predictions against just observing degradation directly.
Furthermore graph-based models could integrate failure propagation within a
system that has dependencies, and LSTMs can be used to learn temporal feature
representations that our more classical methods handcraft.
A note
on security, in addition,. A lot of monitoring data can sensitive information
about the system, including the type of hardware and specific versions of software,
and careful use of authorization is key. It's also important to log exactly
what version of models, features, and what dataset was used to make a
prediction, especially those made that lead to operator action, so that
operations systems can retrospectively investigate if a specific version of a
model made bad choices that an operational mistake could be attributed to,
rather than just the tool being used, when perhaps it's been reconfigured
incorrectly.
In
summary this work presents an end-to-end machine learning system including
stateful risk, multivariate input, feature learning, and operational
thresholds; demonstrating that a carefully constructed predictive
infrastructure could serve as a first line of detection for production cloud
systems. Further real world analysis beyond the simulated system shown in the
section on experimental results needs to occur for product ionization of this
system.
Conclusion
In this paper, an end-to-end machine-learning approach for predictive failure detection in cloud systems has been presented. The developed workflow is composed of multivariate telemetry collection, data validation, feature engineering over time, calculation of predicted failure probability using Random Forest, temporally aggregating the computed risks, defining condition for persistence of the detected risk before triggering a persistence-aware alert, and mechanism to increase transparency through explanation of the predicted failure and a process for controlled model retraining. The primary methodology innovation is that statistical prediction is cleanly separated from operational alerting; the former calculates future failure probabilities and the latter raises alarms if predicted risk suggests the importance to necessitate an action and not a benign temporary anomaly. While the illustrated simulation allows comparison of the presented workflow against standard ML and sequence learning methods, its simulated nature makes conclusions about the system's quantitative behavior premature for production deployment. The immediate next step must be to validate the entire pipeline using production-quality cloud traces along with, among other things, precise failure labels, varied prediction window lengths, lead-time analyses, ablation studies, and judicious selections of sensitive thresholds. If it passes this round of tests, the proposed framework will truly make up a usable, explainable, scalable and tightly controlled predictive layer for operational clouds.
References
[1] J. L. Hellerstein, “Google
cluster data,” Google Research, 2010.
[Online]. Available: https://research.google/blog/google-cluster-data/
[2] J. Wilkes, “More Google
cluster data,” Google Research, Nov. 29, 2011.[Online]. Available:
https://research.google/blog/more-google-cluster-data/
[3] A. Verma, L. Pedrosa, M.
R. Korupolu, D. Oppenheimer, E. Tune, and J. Wilkes, “Large-scale cluster
management at Google with Borg,” in
Proc. 10th Eur. Conf. Comput. Syst. (EuroSys), Bordeaux, France, 2015.
[4] M. Tirmazi, A. Barker, N.
Deng, M. E. Haque, Z. G. Qin, S. Hand,
M. Harchol-Balter, and J. Wilkes, “Borg: The next generation,” in Proc. 15th Eur. Conf. Comput. Syst.
(EuroSys), Heraklion, Greece, 2020.
[5] S. Di, D. Kondo, and W.
Cirne, “Characterization and comparison of
cloud versus grid workloads,” in Proc. IEEE Int. Conf. Cluster Comput.,
2012.
[6] D. A. Bhanage, A. V.
Pawar, and K. Kotecha, “IT infrastructure anomaly detection and failure
handling: A systematic literature review focusing on datasets, log
preprocessing, machine & deep learning approaches and automated tool,” IEEE Access, vol. 9, pp.
156392–156421, 2021, doi:
10.1109/ACCESS.2021.3128283.
[7] T. Salman, D. Bhamare, A.
Erbad, R. Jain, and M. Samaka, “Machine learning for anomaly detection and
categorization in multi-cloud
environments,” in Proc. 4th IEEE Int. Conf. Cyber Security and Cloud Comput.
(CSCloud), New York, NY, USA, 2017, pp. 97–103,
doi: 10.1109/CSCloud.2017.15.
[8] A. M. Abdallah, A. S. R.
O. Alkaabi, G. B. N. D. Alameri, S. H.
Rafique, N. S. Musa, and T. Murugan, “Cloud network anomaly detection using
machine and deep learning
techniques—Recent research advancements,” IEEE Access, vol. 12, pp. 56749–56773, 2024, doi: 10.1109/ACCESS.2024.3390844.
[9] “An unsupervised machine
learning-based method for detection and
explanation of anomalies in cloud environments,” in Proc. IEEE, 2022.
[10] M. Farshchi, J.-G.
Schneider, I. Weber, and J. C. Grundy,
“Experience report: Anomaly detection of cloud application operations
using log and cloud metric correlation analysis,” in Proc. 26th IEEE Int. Symp.
Software Reliability Engineering (ISSRE), 2015, pp. 24–34, doi: 10.1109/ISSRE.2015.7381796.
[11] F. Yu, H. Xu, S. Jian, C.
Huang, Y. Wang, and Z. Wu, “DRAM
failure prediction in large-scale data centers,” in Proc. IEEE Int. Conf. Joint Cloud Comput. (JCC), 2021,
pp. 1–8, doi:
10.1109/JCC53141.2021.00012.
[12] Z. Wu, H. Xu, G. Pang, F.
Yu, Y. Wang, S. Jian, and Y. Wang, “DRAM
failure prediction in AIOps: Empirical evaluation, challenges and opportunities,” arXiv preprint
arXiv:2104.15052, 2021.
[13] C. Reiss, J. Wilkes, and
J. L. Hellerstein, “Obfuscatory obscanturism: Making workload traces of
commercially-sensitive systems safe to release,” in Proc. IEEE Network
Operations and Management Symp. (NOMS), Maui, HI, USA, 2012, pp. 1279–1286, doi:
10.1109/NOMS.2012.6212064.
[14] M. Sedaghat, E. Wadbro, J.
Wilkes, S. De Luna, O. Seleznjev, and
E. Elmroth, “DieHard: Reliable scheduling to survive correlated failures in cloud data centers,” in Proc. 16th
IEEE/ACM Int. Symp. Cluster, Cloud and
Grid Comput. (CCGrid), Cartagena, Colombia, 2016, pp. 52–59, doi:
10.1109/CCGrid.2016.11.
[15] L. A. Barroso, J. Dean,
and U. Hölzle, “Web search for a planet: The Google cluster architecture,” IEEE Micro, vol. 23, no. 2, pp. 22–28,
Mar./Apr. 2003.
[16] A. Elkaradawy, A.
Elshenawy, and H. Harb, “Enhancing cloud job failure prediction with a novel
multilayer voting-based framework,” IEEE Access, vol. 13, pp.
140600–140613, 2025, doi:
10.1109/ACCESS.2025.3593808.
[17] S. K. A. Malleswaran, K.
Marimuthu, P. Robert, and P. Kuppan, “Optimized Bayesian tensorized neural
network affording task failure
prediction in cloud environment,” Expert Systems with Applications, vol.
285, p. 127538, 2025, doi: 10.1016/j.eswa.2025.127538.
[18] M. S. Islam, M. S. Rakha,
W. Pourmajidi, J. Sivaloganathan, J.
Steinbacher, and A. Miranskyy, “Anomaly
detection in large-scale cloud systems: An industry case and dataset,” in Proc. IEEE/ACM 47th Int.
Conf. Software Engineering: Software
Engineering in Practice (ICSE-SEIP), Ottawa, ON, Canada, 2025, doi: 10.1109/ICSE-SEIP66354.2025.00039.
[19] J. Forough, H. Haddadi, M.
Bhuyan, and E. Elmroth, “Efficient anomaly detection for edge clouds:
Mitigating data and resource
constraints,” IEEE Access, vol. 12, pp. 171897–171910, 2024, doi: 10.1109/ACCESS.2024.3492815.
[20] S. Tripathi, P. Gupta, R. Misra, et al., “GQAT-Net: A calibrated attention model for failure prediction in large-scale distributed systems,” Journal of Grid Computing, vol. 23, Art. no. 25, 2025, doi: 10.1007/S10723-025-09813-6.