---
title: Feature Extractor
slug: manufacturing-connect-edge-v2/feature-extractor
docTags: 
createdAt: 2024-08-08T21:50:34.400Z
---

The **Feature Extractor&#x20;**&#x70;rocessor extracts meaningful patterns and characteristics from raw PLC data, transforming complex data into features that advanced analytic models can easily understand and utilize.&#x20;

# Feature Extractor Overview

- Let's say you picked a window of *N* values:
- **Minimum**: Gives you minimum of N values
- **Maximum**: Gives you maximum of N values
- **Average**: Gives you the average(mean) of N values
- **Standard Deviation** : squareRoot( (x - average)^2/(N-1) )
- **Variance** : (x - average)^2/(N-1)
- **Median** : N/2 for odd number of window elements, \{\[N-1] + \[N]}/2 for even window elements
- **Kurtosis** : \[ (N)(N+1) / (N-1)(N-2)(N-3) ] \* SIGMA \[(x\_i - x\_avg)/(stdDeviation) ^4]
- **Skewness** : \[ (N) / (N-1)(N-2)] \* SIGMA \[(x\_i - x\_avg)/(stdDeviation) ^3]
- **Zero crossing rate**: Gives you how many times the signal has crossed zero i.e positive value to negative, OR negative value to positive
- **Root Mean Square** : squareRoot\[ SIGMA x^2 / N]
- **Quartiles**: Divides the signal into 4 equal quartiles, based on medians
- **Inter-quartile Range**: Difference between the third quartile and first quartile
- **Mean Absolute Deviation** : abs(x - average)/(N)
- **Average absolute variation** : abs(x - average)/(N)
- The **timer interval** parameter is useful if the connected input tag is currently not polling, but you still want this KPI to publish a value every few seconds, defined by the aforementioned timer.
- If you know your input is going to publish at the expected interval, it is better to disable this timer by entering **0** in the field.

# &#x20;Feature Extractor Parameters

| **Parameters**                                                                                                                                                                                                                                                      | **Details**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Window Size                                                                                                                                                                                                                                                         | This parameter specifies the window in which to calculate the features, represented in seconds.&#xD;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Minimum<br />Maximum<br />Average<br />Standard Deviation<br />Variance<br />Median<br />Kurtosis<br />Skewness<br />Zero Crossing Rate<br />Root Mean Square<br />Quartiles<br />Inter Quartile Range<br />Mean Absolute Deviation<br />Average Absolute Variation | Minimum: It gives the minimum value within the specified window size.<br />Maximum: This parameter gives you the maximum value within the specified window size.<br />Average: It calculates the average (mean) of the values within the window size.<br />Standard Deviation: This parameter computes the standard deviation of the values within the window.<br />Variance: It calculates the variance of the values within the window.<br />Median: This parameter gives you the median of the values within the window.<br />Kurtosis: Kurtosis measures the "heaviness" of the tails of the distribution of values within the window.<br />Skewness: Skewness measures the asymmetry of the distribution of values within the window.<br />Zero Crossing Rate: It determines the number of times the signal crosses zero within the window.<br />Root Mean Square: This parameter calculates the root mean square of the values within the window.<br />Quartiles: It divides the signal into four equal quartiles based on the medians within the window.<br />Inter-Quartile Range: This parameter determines the difference between the third quartile and the first quartile within the window.<br />Mean Absolute Deviation: It calculates the mean absolute deviation of the values within the window.<br />Average Absolute Variation: This parameter calculates the average absolute variation of the values within the window. |
| Timer Interval                                                                                                                                                                                                                                                      | This parameter allows you to set the timer in milliseconds. It's useful for continuous output display when no event is triggering the expression.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Pass Through Value                                                                                                                                                                                                                                                  | The Pass Through Value parameter enables you to specify how anomalous data should be handled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/JTbahsOGs-CiScMCU-wHr_image.png "Feature Extractor Parameters")

:::hint{type="info"}
**Note:&#x20;**&#x57;hen creating an analytics flow with *Feature Extractor&#x20;*&#x70;rocessor, refer the [Use the Feature Extractor Function](docId\:Ojq043DRXN9eCl3Y41PzP) guide for more details.
:::

