This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:iot-reloaded:introduction_to_time_series_analysis [2024/12/03 17:35] – [A cooling system case] pczekalski | en:iot-reloaded:introduction_to_time_series_analysis [2025/05/13 14:59] (current) – [A cooling system case] pczekalski | ||
---|---|---|---|
Line 3: | Line 3: | ||
In the context of IoT systems, there might be several reasons why time series analysis is needed. | In the context of IoT systems, there might be several reasons why time series analysis is needed. | ||
- | The most widely ones are the following: | + | The most widely |
* **Process dynamics forecasting** for higher-performing decision support systems. An IoT system, coupled with appropriate cloud computing or other computing infrastructure, | * **Process dynamics forecasting** for higher-performing decision support systems. An IoT system, coupled with appropriate cloud computing or other computing infrastructure, | ||
* **Anomaly detection** is a highly valued feature of IoT systems. In its essence, anomaly detection is a set of methods enabling the recognition of unwanted or abnormal behaviour of the system over a specific time period. Anomalies might be expressed in data differently: | * **Anomaly detection** is a highly valued feature of IoT systems. In its essence, anomaly detection is a set of methods enabling the recognition of unwanted or abnormal behaviour of the system over a specific time period. Anomalies might be expressed in data differently: | ||
- | * **A certain event in time:** for instance, a measurement jumps over a defined threshold value. This is the simplest type of anomaly, and most of the control systems cope with it by setting appropriate threshold values and alerting mechanisms; | + | * **A certain event in time:** for instance, a measurement jumps over a defined threshold value. This is the simplest type of anomaly, and most control systems cope with it by setting appropriate threshold values and alerting mechanisms. |
- | * **Change of a data fragment shape:** This might happen to technical systems, where a typical response to control inputs has changed to some shape that is not anticipated or planned. A simple example is an engine’s response to turning it on and reaching typical rpm values. Due to overloads, worn-out mechanics, or other reasons, the response might take too long, signalling that the device has to be repaired. | + | * **Change of a data fragment shape:** This might happen to technical systems, where a typical response to control inputs has changed to some shape that is not anticipated or planned. A simple example is an engine's response to turning it on and reaching typical rpm values. Due to overloads, worn-out mechanics, or other reasons, the response might take too long, signalling that the device has to be repaired. |
* **Event density:** Many technical systems' | * **Event density:** Many technical systems' | ||
- | * **Event value distribution: | + | * **Event value distribution: |
| | ||
Due to its diversity, various algorithms might be used in anomaly detection, including those covered in previous chapters. For instance, clustering for typical response clusters, regression for normal future states estimation and measuring the distance between forecast and actual measurements, | Due to its diversity, various algorithms might be used in anomaly detection, including those covered in previous chapters. For instance, clustering for typical response clusters, regression for normal future states estimation and measuring the distance between forecast and actual measurements, | ||
Line 16: | Line 16: | ||
- | While most of the methods covered here might be employed in time series analysis, this chapter outlines anomaly detection and classification cases through | + | While most of the methods covered here might be employed in time series analysis, this chapter outlines anomaly detection and classification cases through an industrial cooling system |
===== A cooling system case ===== | ===== A cooling system case ===== | ||
- | A given industrial cooling system has to maintain a specific temperature mode of around -18oC. Due to the technology | + | A given industrial cooling system has to maintain a specific temperature mode of around -18C. Due to the specifics |
Line 55: | Line 55: | ||
One might notice that: | One might notice that: | ||
- | * Samples of different patterns are different in length; | + | * Samples of different patterns are different in length. |
- | * Samples of the same pattern are of different lengths; | + | * Samples of the same pattern are of different lengths. |
- | * The interested | + | * The interesting |
The abovementioned issues expose the problem of calculating distances from one example to another since comparing data points will produce misleading distance values. To avoid it, a Dynamic Time Warping | The abovementioned issues expose the problem of calculating distances from one example to another since comparing data points will produce misleading distance values. To avoid it, a Dynamic Time Warping | ||
Line 74: | Line 74: | ||
</ | </ | ||
- | As it might be noticed, the query (black) samples are somewhat different from the ones found to be " | + | As might be noticed, the query (black) samples are somewhat different from the ones found to be " |
The same idea demonstrated here might be used for unknown anomalies by setting a similarity threshold for DTW, classifying known anomalies as shown here, or even simple forecasting. | The same idea demonstrated here might be used for unknown anomalies by setting a similarity threshold for DTW, classifying known anomalies as shown here, or even simple forecasting. | ||