---
sourceDocument: Brazil Impact
sourceDocumentLink: https://www.servicenow.com/docs/r/impact

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Impact

ft:clusterId :

    - ipact

bundleId :

    - ipact


---

# Anomaly detection algorithm

# Anomaly detection algorithm {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Anomaly detection algorithm

Instance Observer uses an anomaly detection algorithm based on the Z-score statistical model, also known as a univariate method, to analyze key performance metrics.
It evaluates five specific metrics: Memory Max, Semaphore Mean, SQL response time, Server Response Time, and Transaction count.
The model is validated across daily, weekly, and monthly data samples to ensure accuracy in identifying anomalies.
Show full answer Show less  

## Key Features

* **Z-score methodology:** This statistical approach calculates how far a metric deviates from its historical mean, measured in standard deviations. It is applied to Transaction count, Server Response Time, and SQL response time. The Z-score compares the current data point against historical data from the same time period over the past four weeks, adjusting for natural cyclical patterns such as daily or weekly trends.
* **Upper threshold-based methodology:** This method monitors metrics with defined exhaustion limits, such as Semaphore Mean and Memory Max. It triggers an alert only when a metric approaches its pre-set upper limit, ensuring that alerts are raised for genuinely critical resource usage rather than normal deviations below these limits.
* **Consideration of cyclicity:** The model incorporates the cyclicity score, which measures the similarity of data patterns over time. This helps differentiate true anomalies from expected cyclical variations, enhancing the reliability of anomaly detection.

## Practical Use for ServiceNow Customers

By leveraging the Z-score and upper threshold methodologies, the anomaly detection algorithm enables ServiceNow customers to proactively monitor system health and performance. It helps identify unusual behaviors in key metrics that might indicate potential issues, allowing for early intervention before they impact users or system stability. The integration of cyclical pattern analysis ensures that alerts are meaningful and reduce false positives caused by normal operational fluctuations.  
Instance Observer is performing anomalies detection through the Z-score Statistical model, otherwise referred to as a univariate method.
Anomaly detection analyzes a set of five metrics, Memory Max, Semaphore Mean, SQL response time, Server Response Time and Transaction count. The detection model has been validated with samplings with multiple instances of daily,
weekly, and monthly level data.

Metrics representing anomalies using the Z-score model are Transaction count, Server Response Time \& SQL Response time. Metrics representing anomalies using an upper threshold-based approach are Semaphore Mean, Node max Memory,
and Job execution. Refer to [Generate performance charts](https://www.servicenow.com/docs/zxtIResiY5ZF4Xopd9s3Qg "Follow these steps to generate Performance charts using Instance Observer.") for details on the five metrics.

## Upper threshold-based methodology {#anomaly-detection-algorithm__section_w3s_f45_xyb}

Upper threshold-based methodology uses metrics with an exhausting limit. For example, metric A, which has a semaphore mean value of 14 or 16, which is used on the platform to limit the number of transactions that can occur on a
node at one time to protect resources on the node. Metric B, memory max of 2 GB, where each node memory has a pre-defined maximum capacity. In all such similar cases, the situation is alarming only when the metrics are closer to the
exhaustion limit. Even if the deviation is higher than the mean, but lower than the exhausting limit, then the threshold limit wouldn't result in an alarm.

## Z-score methodology {#anomaly-detection-algorithm__section_lm3_ngr_fyb}

A Z-score is  a numerical measurement that describes the relationship between a value to the mean of a group of values. Z-score is measured in terms of standard deviations from the mean. If a Z-score is 0, then the data point score
is identical to the mean score.

The formula for calculating a Z-score is `z = (x-μ)/σ`:  
* `x`: The raw score of the data, as the moving average of the previous 15 minutes
* `μ`: The data population mean that is the average of the previous four weeks on the same day, same hour, and same minute
* `σ`: The data population standard deviation
{#anomaly-detection-algorithm__ul_iqt_qhr_fyb}When calculating Z-scores or making comparisons, it's essential to consider these patterns of the analyzed data with inherent cyclical patterns. Cyclicity in a dataset refers to repeating patterns that occur at regular intervals, such as daily, weekly, or seasonal cycles. For example, sales data may exhibit higher values during holiday seasons or lower values during off-peak periods.

The cyclicity score is the similarity between two series which measure the similarity between two vectors and helps ensure that the Z-score model provides reliable insights and identifies true anomalies or outliers while
considering the natural patterns of the data.

The cyclical score is calculated at the instance level with a data selection of four weeks divided into two-week vector increments, excluding weekends. The score returns the similarity score between the two, where a higher score
indicates a more aligned similarity trend in the compared vector data.

